VirtualBox

Changeset 74653 in vbox


Ignore:
Timestamp:
Oct 7, 2018 12:49:57 PM (6 years ago)
Author:
vboxsync
Message:

IPRT: Try shut up xmlFree linker warning.

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r74652 r74653  
    39473947# SDKs for external libraries.
    39483948#
    3949 SDK_VBOX_LIBXML2          = .
    3950 SDK_VBOX_LIBXML2_INCS   ?= $(PATH_ROOT)/src/libs/libxml2-2.9.4/include
    3951 SDK_VBOX_LIBXML2_DEFS  ?= _REENTRANT
    3952 SDK_VBOX_LIBXML2_DEFS.win += WIN32 _WINDOWS _MBCS
    3953 # note: no linking to LIB here, we do that explicitly in src/VBox/Runtime/Makefile.kmk to link
    3954 # libxml against VBoxRT
     3949SDK_VBOX_LIBXML2           = .
     3950SDK_VBOX_LIBXML2_INCS     ?= $(PATH_ROOT)/src/libs/libxml2-2.9.4/include
     3951SDK_VBOX_LIBXML2_DEFS     ?= _REENTRANT LIBXML_STATIC LIBXML_STATIC_FOR_DLL
     3952SDK_VBOX_LIBXML2_DEFS.win ?= WIN32 _WINDOWS _MBCS HAVE_WIN32_THREADS HAVE_COMPILER_TLS
     3953# Note: no linking to LIB here, we do that explicitly in src/VBox/Runtime/Makefile.kmk to link
     3954#       libxml against VBoxRT
    39553955
    39563956SDK_VBOX_LIBPNG       = .
  • trunk/configure

    r74325 r74653  
    659659
    660660#
    661 # Check for libxml2, needed by VBoxSettings and Runtime.
     661# Check for libxml2, needed by the Runtime.
    662662# 2.6.24 is known to NOT work, 2.6.26 is known to work (there is no 2.6.25 release)
    663663#
     
    693693        if test_compile "$LIBXML2 $LIBPTHREAD $I_INCXML2" xml2 xml2; then
    694694          if test_execute; then
     695            cnf_append "SDK_VBOX_LIBXML2_DEFS" "_REENTRANT" ## @todo get defines from --cflags
    695696            cnf_append "SDK_VBOX_LIBXML2_INCS" "$INCXML2"
    696697            cnf_append "SDK_VBOX_LIBXML2_LIBS" "`strip_l "$LIBXML2"`"
     
    726727        if test_compile "$LIBXML2 $LIBPTHREAD $I_INCXML2" xml2 xml2; then
    727728          if test_execute; then
     729            cnf_append "SDK_VBOX_LIBXML2_DEFS" "_REENTRANT" ## @todo get defines from --cflags
    728730            cnf_append "SDK_VBOX_LIBXML2_INCS" "$INCXML2"
    729731            cnf_append "SDK_VBOX_LIBXML2_LIBS" "`strip_l "$LIBXML2"`"
  • trunk/configure.vbs

    r73854 r74653  
    18211821
    18221822   strPathXml2 = UnixSlashes(PathAbs(strPathXml2))
     1823   CfgPrint "SDK_VBOX_LIBXML2_DEFS  := _REENTRANT"
    18231824   CfgPrint "SDK_VBOX_LIBXML2_INCS  := " & strPathXml2 & "/include"
    18241825   CfgPrint "SDK_VBOX_LIBXML2_LIBS  := " & strPathXml2 & "/lib/libxml2.lib"
  • trunk/src/VBox/Runtime/Makefile.kmk

    r74652 r74653  
    21692169        -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxRT.dylib
    21702170VBoxRT_LDFLAGS.win             = /MANIFEST \
    2171         /delayload:gdi32.dll \
    21722171        /delayload:user32.dll \
    21732172        /delayload:shell32.dll \
  • trunk/src/libs/libxml2-2.9.4/Makefile.kmk

    r66908 r74653  
    2626VBox-libxml2_DEFS           = _REENTRANT # the latter triggers thread support, see xmlversion-default.h and win32xmlversion.h.
    2727VBox-libxml2_DEFS.win       = WIN32 _WINDOWS _MBCS _CRT_SECURE_NO_DEPRECATE _CRT_NONSTDC_NO_DEPRECATE \
    28                               LIBXML_STATIC_FOR_DLL HAVE_WIN32_THREADS HAVE_ZLIB_H
     28                              LIBXML_STATIC LIBXML_STATIC_FOR_DLL HAVE_WIN32_THREADS HAVE_COMPILER_TLS HAVE_ZLIB_H
    2929VBox-libxml2_CFLAGS.win.amd64 = -wd4267
    3030VBox-libxml2_CFLAGS.win    += -wd4701 # potentially uninitialized local variable 'l' used
  • trunk/src/libs/libxml2-2.9.4/libxml.h

    r65950 r74653  
    116116#endif
    117117#endif
    118 #if !defined(PIC) && !defined(NOLIBTOOL)
     118#if !defined(PIC) && !defined(NOLIBTOOL) /* VBox: */ && !defined(LIBXML_STATIC)
    119119#  define LIBXML_STATIC
    120120#endif
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette