diff options
Diffstat (limited to 'gcc/Makefile.in')
-rw-r--r-- | gcc/Makefile.in | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 24c8fed8a64..ba39ac934ad 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -135,6 +135,9 @@ CFLAGS = @CFLAGS@ CXXFLAGS = @CXXFLAGS@ LDFLAGS = @LDFLAGS@ +# Should we build position-independent host code? +PICFLAG = @PICFLAG@ + # Flags to determine code coverage. When coverage is disabled, this will # contain the optimization flags, as you normally want code coverage # without optimization. @@ -346,6 +349,8 @@ PLUGINLIBS = @pluginlibs@ enable_plugin = @enable_plugin@ +enable_host_shared = @enable_host_shared@ + CPPLIB = ../libcpp/libcpp.a CPPINC = -I$(srcdir)/../libcpp/include @@ -955,7 +960,7 @@ CONTEXT_H = context.h # programs built during a bootstrap. # autoconf inserts -DCROSS_DIRECTORY_STRUCTURE if we are building a # cross compiler which does not use the native headers and libraries. -INTERNAL_CFLAGS = -DIN_GCC @CROSS@ +INTERNAL_CFLAGS = -DIN_GCC $(PICFLAG) @CROSS@ # This is the variable actually used when we compile. If you change this, # you probably want to update BUILD_CFLAGS in configure.ac @@ -978,8 +983,15 @@ ALL_COMPILERFLAGS = $(ALL_CXXFLAGS) ALL_LINKERFLAGS = $(ALL_CXXFLAGS) # Build and host support libraries. + +# Use the "pic" build of libiberty if --enable-host-shared. +ifeq ($(enable_host_shared),yes) +LIBIBERTY = ../libiberty/pic/libiberty.a +BUILD_LIBIBERTY = $(build_libobjdir)/libiberty/pic/libiberty.a +else LIBIBERTY = ../libiberty/libiberty.a BUILD_LIBIBERTY = $(build_libobjdir)/libiberty/libiberty.a +endif # Dependencies on the intl and portability libraries. LIBDEPS= libcommon.a $(CPPLIB) $(LIBIBERTY) $(LIBINTL_DEP) $(LIBICONV_DEP) \ |