Changeset 44025 in vbox
- Timestamp:
- Dec 4, 2012 1:33:34 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r43873 r44025 3671 3671 TEMPLATE_VBOXR3STATIC = VBox Static Ring 3 EXE 3672 3672 TEMPLATE_VBOXR3STATIC_EXTENDS = VBOXR3EXE 3673 TEMPLATE_VBOXR3STATIC_DEFS = IN_RT_STATIC $(TEMPLATE_VBOXR3EXE_DEFS) 3673 3674 ifeq ($(KBUILD_TARGET),win) 3674 3675 TEMPLATE_VBOXR3STATIC_CFLAGS = $(filter-out -MD$(VBOX_VCC_CRT_TYPE), $(TEMPLATE_VBOXR3EXE_CFLAGS)) -MT$(VBOX_VCC_CRT_TYPE) -
trunk/src/VBox/Runtime/Makefile.kmk
r44024 r44025 1 1 # $Id$ 2 2 ## @file 3 # Sub-Makefile for the IPRT (IPRT).3 # Sub-Makefile for the IPRT. 4 4 # 5 5 … … 215 215 RuntimeR3_SDKS = VBOX_LIBXML2 VBOX_OPENSSL VBOX_BOOST ## @todo why is BOOST and XML2 here? r3/xml.cpp is not in this lib... 216 216 RuntimeR3_SDKS.win = $(VBOX_WINPSDK) $(VBOX_WINDDK) 217 RuntimeR3_DEFS = IN_RT_R3 IN_SUP_R3 IN_RT_STATICLDR_WITH_NATIVE LDR_WITH_ELF32 LDR_WITH_PE RT_WITH_VBOX RT_NO_GIP217 RuntimeR3_DEFS = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF32 LDR_WITH_PE RT_WITH_VBOX RT_NO_GIP 218 218 #RuntimeR3_DEFS += RTMEM_WRAP_TO_EF_APIS 219 219 ifdef IPRT_WITH_KSTUFF … … 588 588 win/RTErrConvertFromWin32.cpp 589 589 590 RuntimeR3_SOURCES.win.amd64 = $(RuntimeWin64ASM_SOURCES)591 RuntimeR3_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)590 RuntimeR3_SOURCES.win.amd64 := $(RuntimeWin64ASM_SOURCES) 591 RuntimeR3_SOURCES.win.x86 := $(RuntimeWin32ASM_SOURCES) 592 592 593 593 RuntimeR3_SOURCES.linux = \ … … 1099 1099 ## @todo change this to EXTEND the RuntimeR3 target. 1100 1100 RuntimeGuestR3_SDKS.win := $(RuntimeR3_SDKS.win) 1101 RuntimeGuestR3_DEFS := $(filter-out IN_RT_STATICRTCRITSECT_STRICT RT_NO_GIP, $(RuntimeR3_DEFS))1101 RuntimeGuestR3_DEFS := $(filter-out RTCRITSECT_STRICT RT_NO_GIP, $(RuntimeR3_DEFS)) 1102 1102 RuntimeGuestR3_DEFS.$(KBUILD_TARGET) := $(RuntimeR3_DEFS.$(KBUILD_TARGET)) 1103 RuntimeGuestR3_DEFS.$(KBUILD_HOST) 1103 RuntimeGuestR3_DEFS.$(KBUILD_HOST) := $(RuntimeR3_DEFS.$(KBUILD_HOST)) 1104 1104 RuntimeGuestR3_INCS := $(RuntimeR3_INCS) 1105 1105 RuntimeGuestR3_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET)) … … 1161 1161 RuntimeGuestR3Mini_SDKS.win := $(RuntimeR3_SDKS.win) 1162 1162 RuntimeGuestR3Mini_DEFS := \ 1163 $(filter-out IN_RT_STATICRTCRITSECT_STRICT RT_NO_GIP RT_WITH_ICONV_CACHE, $(RuntimeR3_DEFS)) \1163 $(filter-out RTCRITSECT_STRICT RT_NO_GIP RT_WITH_ICONV_CACHE, $(RuntimeR3_DEFS)) \ 1164 1164 RT_MINI IN_RT_STATIC RTMEM_NO_WRAP_TO_EF_APIS 1165 1165 RuntimeGuestR3Mini_DEFS.$(KBUILD_TARGET) := $(RuntimeR3_DEFS.$(KBUILD_TARGET)) … … 1290 1290 # (Only used when building L4.) 1291 1291 # 1292 RuntimeLnxHostR3_TEMPLATE 1293 RuntimeLnxHostR3_DEFS 1294 RuntimeLnxHostR3_SOURCES 1292 RuntimeLnxHostR3_TEMPLATE := VBOXLNXHOSTR3LIB 1293 RuntimeLnxHostR3_DEFS := IN_RT_R3 IN_SUP_R3 RT_WITH_VBOX RT_NO_GIP 1294 RuntimeLnxHostR3_SOURCES := \ 1295 1295 $(RuntimeR3_SOURCES.linux.$(KBUILD_TARGET_ARCH)) \ 1296 1296 $(RuntimeR3_SOURCES.linux) \ 1297 1297 $(RuntimeR3_SOURCES) 1298 RuntimeLnxHostR3_INCS 1298 RuntimeLnxHostR3_INCS := \ 1299 1299 $(RuntimeR3_INCS.linux.$(KBUILD_TARGET_ARCH)) \ 1300 1300 $(RuntimeR3_INCS.linux) \ … … 1315 1315 VBoxRT_INST = $(INST_DLL) $(INST_TESTCASE) 1316 1316 endif 1317 VBoxRT_DEFS = $(filter-out RT_NO_GIP IN_RT_STATIC,$(RuntimeR3_DEFS)) IN_SUP_R3 IN_SUP_R31317 VBoxRT_DEFS := $(filter-out RT_NO_GIP,$(RuntimeR3_DEFS)) IN_SUP_R3 IN_SUP_R3 1318 1318 ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86) 1319 1319 VBoxRT_DEFS += RT_NO_GIP 1320 1320 endif 1321 VBoxRT_DEFS.$(KBUILD_TYPE) 1322 VBoxRT_SOURCES 1321 VBoxRT_DEFS.$(KBUILD_TYPE) := $(RuntimeR3_DEFS.$(KBUILD_TYPE)) 1322 VBoxRT_SOURCES := \ 1323 1323 VBox/VBoxRTDeps.cpp \ 1324 1324 r3/xml.cpp \ … … 1330 1330 endif 1331 1331 VBoxRT_SOURCES.$(KBUILD_TARGET) = $(RuntimeR3_SOURCES.$(KBUILD_TARGET)) 1332 VBoxRT_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) = $(RuntimeR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))1333 VBoxRT_SOURCES.$(KBUILD_TARGET_ARCH) = $(RuntimeR3_SOURCES.$(KBUILD_TARGET_ARCH))1332 VBoxRT_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)) 1333 VBoxRT_SOURCES.$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET_ARCH)) 1334 1334 VBoxRT_SOURCES.win += \ 1335 1335 r3/win/dllmain-win.cpp \ … … 1344 1344 VBoxRT_SOURCES.freebsd += \ 1345 1345 r3/freebsd/fileaio-freebsd.cpp 1346 VBoxRT_INCS 1347 VBoxRT_INCS.$(KBUILD_TARGET) 1348 VBoxRT_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) = $(RuntimeR3_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))1346 VBoxRT_INCS := $(RuntimeR3_INCS) 1347 VBoxRT_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET)) 1348 VBoxRT_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)) 1349 1349 VBoxRT_LIBS = \ 1350 1350 $(PATH_STAGE_LIB)/VBox-liblzf$(VBOX_SUFF_LIB) … … 1463 1463 RuntimeR3NoCRTGCC_DEFS += RT_NO_GIP 1464 1464 endif 1465 RuntimeR3NoCRTGCC_INCS = include1466 RuntimeR3NoCRTGCC_SOURCES 1465 RuntimeR3NoCRTGCC_INCS = include 1466 RuntimeR3NoCRTGCC_SOURCES := \ 1467 1467 common/misc/sanity-cpp.cpp \ 1468 1468 common/misc/sanity-c.c \ … … 1541 1541 endif 1542 1542 RuntimeR0_INCS = include 1543 RuntimeR0_SOURCES 1543 RuntimeR0_SOURCES := \ 1544 1544 common/log/logellipsis.cpp \ 1545 1545 common/log/logrelellipsis.cpp \ … … 1622 1622 #endif 1623 1623 1624 RuntimeR0_SOURCES.win.amd64 = $(RuntimeWin64ASM_SOURCES)1625 RuntimeR0_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)1624 RuntimeR0_SOURCES.win.amd64 := $(RuntimeWin64ASM_SOURCES) 1625 RuntimeR0_SOURCES.win.x86 := $(RuntimeWin32ASM_SOURCES) 1626 1626 RuntimeR0_SOURCES.win = \ 1627 1627 nt/NtProcessStartup-stub.cpp … … 1818 1818 r0drv/nt/RTTimerGetSystemGranularity-r0drv-nt.cpp 1819 1819 1820 RuntimeR0Drv_SOURCES.win.amd64 = $(RuntimeWin64ASM_SOURCES)1821 RuntimeR0Drv_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)1820 RuntimeR0Drv_SOURCES.win.amd64 := $(RuntimeWin64ASM_SOURCES) 1821 RuntimeR0Drv_SOURCES.win.x86 := $(RuntimeWin32ASM_SOURCES) 1822 1822 1823 1823 RuntimeR0Drv_SOURCES.darwin = \ … … 2046 2046 RuntimeRC_DEFS = IN_RT_RC RT_WITH_VBOX 2047 2047 RuntimeRC_INCS = include 2048 RuntimeRC_SOURCES 2048 RuntimeRC_SOURCES := \ 2049 2049 common/checksum/crc32.cpp \ 2050 2050 common/checksum/crc64.cpp \ … … 2148 2148 # Static library for new & delete for the electric fence. 2149 2149 # 2150 RuntimeEFCPP_TEMPLATE 2151 RuntimeEFCPP_SDKS 2152 RuntimeEFCPP_SDKS.$(KBUILD_TARGET) = $(RuntimeR3_SDKS.$(KBUILD_TARGET))2153 RuntimeEFCPP_DEFS 2154 RuntimeEFCPP_DEFS.$(KBUILD_TARGET) = $(RuntimeR3_DEFS.$(KBUILD_TARGET))2155 RuntimeEFCPP_INCS 2156 RuntimeEFCPP_INCS.$(KBUILD_TARGET) = $(RuntimeR3_INCS.$(KBUILD_TARGET))2157 RuntimeEFCPP_SOURCES 2150 RuntimeEFCPP_TEMPLATE := $(VBoxRT_TEMPLATE) 2151 RuntimeEFCPP_SDKS := $(RuntimeR3_SDKS) 2152 RuntimeEFCPP_SDKS.$(KBUILD_TARGET) := $(RuntimeR3_SDKS.$(KBUILD_TARGET)) 2153 RuntimeEFCPP_DEFS := $(RuntimeR3_DEFS) 2154 RuntimeEFCPP_DEFS.$(KBUILD_TARGET) := $(RuntimeR3_DEFS.$(KBUILD_TARGET)) 2155 RuntimeEFCPP_INCS := $(RuntimeR3_INCS) 2156 RuntimeEFCPP_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET)) 2157 RuntimeEFCPP_SOURCES := r3/alloc-ef-cpp.cpp 2158 2158 2159 2159 -
trunk/src/VBox/Runtime/r3/posix/thread-posix.cpp
r44020 r44025 48 48 # include <mach/mach_host.h> 49 49 #endif 50 #ifdef IN_RT_STATIC 51 /* The pthread_setname_np trickery below assumes a working dl env which is 52 * not guaranteed in the context of a fully static executable. */ 53 # undef IPRT_MAY_HAVE_PTHREAD_SET_NAME_NP 54 #else 55 # if defined(RT_OS_DARWIN) /*|| defined(RT_OS_FREEBSD) - later */ || defined(RT_OS_LINUX) \ 50 #if defined(RT_OS_DARWIN) /*|| defined(RT_OS_FREEBSD) - later */ \ 51 || (defined(RT_OS_LINUX) && !defined(IN_RT_STATIC) /* static + dlsym = trouble */) \ 56 52 || defined(IPRT_MAY_HAVE_PTHREAD_SET_NAME_NP) 57 # define IPRT_MAY_HAVE_PTHREAD_SET_NAME_NP 58 # include <dlfcn.h> 59 # endif 53 # define IPRT_MAY_HAVE_PTHREAD_SET_NAME_NP 54 # include <dlfcn.h> 60 55 #endif 61 56 #if defined(RT_OS_HAIKU)
Note:
See TracChangeset
for help on using the changeset viewer.