Cleanup build system and configuration.
* Drop unused variables from build system that refer to the system libraries. * Drop unused lists of libgcc objects. * Drop no longer used variables from configuration script. * Remove no longer needed building of kernel-libgcc and -libsupc++ from build_cross_tools_gcc4, only the boot-specific (32-bit) libs are built for a x86_64 target. * Explicitly disable threads and TLS support when building the cross compiler, as the only libraries that are used by Haiku's build system is the 32-bit libgcc and libsupc++ for the bootloader on x86_64 (and for that neither is wanted).
This commit is contained in:
+4
-19
@@ -132,9 +132,6 @@ if $(HAIKU_PACKAGING_ARCH) {
|
||||
# define primary packaging architecture macro
|
||||
HAIKU_DEFINES = __HAIKU_PRIMARY_PACKAGING_ARCH=\\\"$(HAIKU_PACKAGING_ARCH)\\\" ;
|
||||
|
||||
HAIKU_LIBSUPC++ = $(HAIKU_LIBSUPC++_$(HAIKU_PACKAGING_ARCH)) ;
|
||||
HAIKU_LIBSTDC++ = $(HAIKU_LIBSTDC++_$(HAIKU_PACKAGING_ARCH)) ;
|
||||
|
||||
|
||||
# distro compatibility level defines
|
||||
HAIKU_DISTRO_COMPATIBILITY ?= "default" ;
|
||||
@@ -655,8 +652,6 @@ local buildVars =
|
||||
|
||||
PRIVATE_KERNEL_HEADERS
|
||||
|
||||
LIBSTDC++ LIBSUPC++
|
||||
|
||||
NETWORK_LIBS NETAPI_LIB SELECT_UNAME_ETC_LIB
|
||||
|
||||
EXECUTABLE_MIME_TYPE
|
||||
@@ -680,8 +675,6 @@ local archDependentBuildVars =
|
||||
|
||||
PRIVATE_SYSTEM_HEADERS
|
||||
|
||||
LIBSTDC++ LIBSUPC++
|
||||
|
||||
ARCH_OBJECT_DIR COMMON_DEBUG_OBJECT_DIR
|
||||
DEBUG_$(HAIKU_DEBUG_LEVELS)_OBJECT_DIR
|
||||
;
|
||||
@@ -696,17 +689,11 @@ if $(TARGET_PLATFORM) = haiku {
|
||||
TARGET_$(var) = $(HAIKU_$(var)) ;
|
||||
}
|
||||
|
||||
TARGET_KERNEL_LIBGCC
|
||||
= $(HAIKU_KERNEL_LIBGCC_$(TARGET_PACKAGING_ARCH)) ;
|
||||
TARGET_KERNEL_LIBSUPC++
|
||||
= $(HAIKU_KERNEL_LIBSUPC++_$(TARGET_PACKAGING_ARCH)) ;
|
||||
TARGET_BOOT_LIBGCC
|
||||
= $(HAIKU_BOOT_LIBGCC_$(TARGET_PACKAGING_ARCH)) ;
|
||||
TARGET_BOOT_LIBSUPC++
|
||||
= $(HAIKU_BOOT_LIBSUPC++_$(TARGET_PACKAGING_ARCH)) ;
|
||||
TARGET_BOOT_LIBGCC = $(HAIKU_BOOT_LIBGCC_$(TARGET_PACKAGING_ARCH)) ;
|
||||
TARGET_BOOT_LIBSUPC++ = $(HAIKU_BOOT_LIBSUPC++_$(TARGET_PACKAGING_ARCH)) ;
|
||||
|
||||
TARGET_BOOT_PLATFORM ?= $(HAIKU_BOOT_PLATFORM) ;
|
||||
TARGET_BOOT_BOARD ?= $(HAIKU_BOOT_BOARD) ;
|
||||
TARGET_BOOT_PLATFORM ?= $(HAIKU_BOOT_PLATFORM) ;
|
||||
TARGET_BOOT_BOARD ?= $(HAIKU_BOOT_BOARD) ;
|
||||
|
||||
local architecture ;
|
||||
for architecture in $(TARGET_PACKAGING_ARCHS) {
|
||||
@@ -724,8 +711,6 @@ if $(TARGET_PLATFORM) = haiku {
|
||||
TARGET_$(var)_$(TARGET_PACKAGING_ARCH) = $(HOST_$(var)) ;
|
||||
}
|
||||
|
||||
TARGET_KERNEL_LIBGCC = ;
|
||||
TARGET_KERNEL_LIBSUPC++ = ;
|
||||
TARGET_BOOT_LIBGCC = ;
|
||||
TARGET_BOOT_LIBSUPC++ = ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user