mirror of
https://review.haiku-os.org/buildtools
synced 2026-02-04 07:53:14 +01:00
gcc: Synchronize Makefile.in with HaikuPorts one.
Includes a fix for the x86_64 GCC build from Jerome. Fixes #14179.
This commit is contained in:
@@ -105,6 +105,8 @@ build_objdir := $(toplevel_builddir)/$(build_subdir)
|
|||||||
build_libobjdir := $(toplevel_builddir)/$(build_libsubdir)
|
build_libobjdir := $(toplevel_builddir)/$(build_libsubdir)
|
||||||
target_objdir := $(toplevel_builddir)/$(target_subdir)
|
target_objdir := $(toplevel_builddir)/$(target_subdir)
|
||||||
|
|
||||||
|
HYBRID_SECONDARY = @HYBRID_SECONDARY@
|
||||||
|
|
||||||
# --------
|
# --------
|
||||||
# Defined vpaths
|
# Defined vpaths
|
||||||
# --------
|
# --------
|
||||||
@@ -263,7 +265,7 @@ NO_PIE_CFLAGS = @NO_PIE_CFLAGS@
|
|||||||
NO_PIE_FLAG = @NO_PIE_FLAG@
|
NO_PIE_FLAG = @NO_PIE_FLAG@
|
||||||
|
|
||||||
# We don't want to compile the compilers with -fPIE, it make PCH fail.
|
# We don't want to compile the compilers with -fPIE, it make PCH fail.
|
||||||
COMPILER += $(NO_PIE_CFLAGS)
|
#COMPILER += $(NO_PIE_CFLAGS)
|
||||||
|
|
||||||
# Link with -no-pie since we compile the compiler with -fno-PIE.
|
# Link with -no-pie since we compile the compiler with -fno-PIE.
|
||||||
LINKER += $(NO_PIE_FLAG)
|
LINKER += $(NO_PIE_FLAG)
|
||||||
@@ -774,9 +776,9 @@ NO_PIE_CFLAGS_FOR_BUILD = @NO_PIE_CFLAGS_FOR_BUILD@
|
|||||||
NO_PIE_FLAG_FOR_BUILD = @NO_PIE_FLAG_FOR_BUILD@
|
NO_PIE_FLAG_FOR_BUILD = @NO_PIE_FLAG_FOR_BUILD@
|
||||||
BUILD_CFLAGS= @BUILD_CFLAGS@ -DGENERATOR_FILE
|
BUILD_CFLAGS= @BUILD_CFLAGS@ -DGENERATOR_FILE
|
||||||
BUILD_CXXFLAGS = @BUILD_CXXFLAGS@ -DGENERATOR_FILE
|
BUILD_CXXFLAGS = @BUILD_CXXFLAGS@ -DGENERATOR_FILE
|
||||||
BUILD_NO_PIE_CFLAGS = @BUILD_NO_PIE_CFLAGS@
|
#BUILD_NO_PIE_CFLAGS = @BUILD_NO_PIE_CFLAGS@
|
||||||
BUILD_CFLAGS += $(BUILD_NO_PIE_CFLAGS)
|
#BUILD_CFLAGS += $(BUILD_NO_PIE_CFLAGS)
|
||||||
BUILD_CXXFLAGS += $(BUILD_NO_PIE_CFLAGS)
|
#BUILD_CXXFLAGS += $(BUILD_NO_PIE_CFLAGS)
|
||||||
|
|
||||||
# Native compiler that we use. This may be C++ some day.
|
# Native compiler that we use. This may be C++ some day.
|
||||||
COMPILER_FOR_BUILD = $(CXX_FOR_BUILD)
|
COMPILER_FOR_BUILD = $(CXX_FOR_BUILD)
|
||||||
@@ -2126,6 +2128,10 @@ DRIVER_DEFINES = \
|
|||||||
$(if $(SHLIB),$(if $(filter yes,@enable_shared@),-DENABLE_SHARED_LIBGCC)) \
|
$(if $(SHLIB),$(if $(filter yes,@enable_shared@),-DENABLE_SHARED_LIBGCC)) \
|
||||||
-DCONFIGURE_SPECS="\"@CONFIGURE_SPECS@\""
|
-DCONFIGURE_SPECS="\"@CONFIGURE_SPECS@\""
|
||||||
|
|
||||||
|
ifneq ($(HYBRID_SECONDARY),)
|
||||||
|
DRIVER_DEFINES += -DHYBRID_SECONDARY="\"$(HYBRID_SECONDARY)\""
|
||||||
|
endif
|
||||||
|
|
||||||
CFLAGS-gcc.o += $(DRIVER_DEFINES) -DBASEVER=$(BASEVER_s)
|
CFLAGS-gcc.o += $(DRIVER_DEFINES) -DBASEVER=$(BASEVER_s)
|
||||||
gcc.o: $(BASEVER)
|
gcc.o: $(BASEVER)
|
||||||
|
|
||||||
@@ -2736,7 +2742,7 @@ $(genprogerr:%=build/gen%$(build_exeext)): $(BUILD_ERRORS)
|
|||||||
genprog = $(genprogerr) check checksum condmd match
|
genprog = $(genprogerr) check checksum condmd match
|
||||||
|
|
||||||
# These programs need libs over and above what they get from the above list.
|
# These programs need libs over and above what they get from the above list.
|
||||||
build/genautomata$(build_exeext) : BUILD_LIBS += -lm
|
build/genautomata$(build_exeext) : BUILD_LIBS += @build_math_library@
|
||||||
|
|
||||||
build/genrecog$(build_exeext) : build/hash-table.o build/inchash.o
|
build/genrecog$(build_exeext) : build/hash-table.o build/inchash.o
|
||||||
build/gencfn-macros$(build_exeext) : build/hash-table.o build/ggc-none.o
|
build/gencfn-macros$(build_exeext) : build/hash-table.o build/ggc-none.o
|
||||||
@@ -2801,6 +2807,10 @@ PREPROCESSOR_DEFINES = \
|
|||||||
-DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc/\" \
|
-DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc/\" \
|
||||||
@TARGET_SYSTEM_ROOT_DEFINE@
|
@TARGET_SYSTEM_ROOT_DEFINE@
|
||||||
|
|
||||||
|
ifneq ($(HYBRID_SECONDARY),)
|
||||||
|
PREPROCESSOR_DEFINES += -DHYBRID_SECONDARY="\"$(HYBRID_SECONDARY)\""
|
||||||
|
endif
|
||||||
|
|
||||||
CFLAGS-cppbuiltin.o += $(PREPROCESSOR_DEFINES) -DBASEVER=$(BASEVER_s)
|
CFLAGS-cppbuiltin.o += $(PREPROCESSOR_DEFINES) -DBASEVER=$(BASEVER_s)
|
||||||
cppbuiltin.o: $(BASEVER)
|
cppbuiltin.o: $(BASEVER)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user