Revert "configure: Implement --enable-host-pie"

This reverts commit 251c72a68af3a8b0638705b73ef120ffdf0053eb.
This commit is contained in:
Marek Polacek 2022-11-22 21:10:31 -05:00
parent 30f399ee93
commit 04711f5189
30 changed files with 216 additions and 549 deletions

View File

@ -51,7 +51,7 @@ host_modules= { module= gcc; bootstrap=true;
host_modules= { module= gmp; lib_path=.libs; bootstrap=true; host_modules= { module= gmp; lib_path=.libs; bootstrap=true;
// Work around in-tree gmp configure bug with missing flex. // Work around in-tree gmp configure bug with missing flex.
extra_configure_flags='--disable-shared LEX="touch lex.yy.c"'; extra_configure_flags='--disable-shared LEX="touch lex.yy.c"';
extra_make_flags='AM_CFLAGS="-DNO_ASM $(PICFLAG)"'; extra_make_flags='AM_CFLAGS="-DNO_ASM"';
no_install= true; no_install= true;
// none-*-* disables asm optimizations, bootstrap-testing // none-*-* disables asm optimizations, bootstrap-testing
// the compiler more thoroughly. // the compiler more thoroughly.
@ -61,15 +61,14 @@ host_modules= { module= gmp; lib_path=.libs; bootstrap=true;
target="none-${host_vendor}-${host_os}"; }; target="none-${host_vendor}-${host_os}"; };
host_modules= { module= mpfr; lib_path=src/.libs; bootstrap=true; host_modules= { module= mpfr; lib_path=src/.libs; bootstrap=true;
extra_configure_flags='--disable-shared @extra_mpfr_configure_flags@'; extra_configure_flags='--disable-shared @extra_mpfr_configure_flags@';
extra_make_flags='AM_CFLAGS="-DNO_ASM $(PICFLAG)"'; extra_make_flags='AM_CFLAGS="-DNO_ASM"';
no_install= true; }; no_install= true; };
host_modules= { module= mpc; lib_path=src/.libs; bootstrap=true; host_modules= { module= mpc; lib_path=src/.libs; bootstrap=true;
extra_configure_flags='--disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ --disable-maintainer-mode'; extra_configure_flags='--disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ --disable-maintainer-mode';
extra_make_flags='AM_CFLAGS="$(PICFLAG)"';
no_install= true; }; no_install= true; };
host_modules= { module= isl; lib_path=.libs; bootstrap=true; host_modules= { module= isl; lib_path=.libs; bootstrap=true;
extra_configure_flags='--disable-shared @extra_isl_gmp_configure_flags@'; extra_configure_flags='--disable-shared @extra_isl_gmp_configure_flags@';
extra_make_flags='V=1 AM_CFLAGS="$(PICFLAG)"'; extra_make_flags='V=1';
no_install= true; }; no_install= true; };
host_modules= { module= gold; bootstrap=true; }; host_modules= { module= gold; bootstrap=true; };
host_modules= { module= gprof; }; host_modules= { module= gprof; };

File diff suppressed because it is too large Load Diff

View File

@ -431,7 +431,6 @@ READELF = @READELF@
STRIP = @STRIP@ STRIP = @STRIP@
WINDRES = @WINDRES@ WINDRES = @WINDRES@
WINDMC = @WINDMC@ WINDMC = @WINDMC@
PICFLAG = @PICFLAG@
GDC = @GDC@ GDC = @GDC@
GNATBIND = @GNATBIND@ GNATBIND = @GNATBIND@

View File

@ -28,9 +28,8 @@ AUTOCONF := @AUTOCONF@
AUTOHEADER := @AUTOHEADER@ AUTOHEADER := @AUTOHEADER@
CXX := @CXX@ CXX := @CXX@
CXXFLAGS := @CXXFLAGS@ CXXFLAGS := @CXXFLAGS@
PICFLAG := @PICFLAG@ PIEFLAG := @PIEFLAG@
LD_PICFLAG := @LD_PICFLAG@ CXXOPTS := $(CXXFLAGS) $(PIEFLAG) -fno-exceptions -fno-rtti
CXXOPTS := $(CXXFLAGS) $(PICFLAG) -fno-exceptions -fno-rtti
LDFLAGS := @LDFLAGS@ LDFLAGS := @LDFLAGS@
exeext := @EXEEXT@ exeext := @EXEEXT@
LIBIBERTY := ../libiberty/libiberty.a LIBIBERTY := ../libiberty/libiberty.a
@ -89,15 +88,11 @@ ifeq (@CXX_AUX_TOOLS@,yes)
all::g++-mapper-server$(exeext) all::g++-mapper-server$(exeext)
ifneq ($(PICFLAG),)
override LIBIBERTY := ../libiberty/pic/libiberty.a
endif
MAPPER.O := server.o resolver.o MAPPER.O := server.o resolver.o
CODYLIB = ../libcody/libcody.a CODYLIB = ../libcody/libcody.a
CXXINC += -I$(srcdir)/../libcody -I$(srcdir)/../include -I$(srcdir)/../gcc -I. -I../gcc CXXINC += -I$(srcdir)/../libcody -I$(srcdir)/../include -I$(srcdir)/../gcc -I. -I../gcc
g++-mapper-server$(exeext): $(MAPPER.O) $(CODYLIB) g++-mapper-server$(exeext): $(MAPPER.O) $(CODYLIB)
+$(CXX) $(LDFLAGS) $(PICFLAG) $(LD_PICFLAG) -o $@ $^ $(LIBIBERTY) $(NETLIBS) +$(CXX) $(LDFLAGS) $(PIEFLAG) -o $@ $^ $(LIBIBERTY) $(NETLIBS)
# copy to gcc dir so tests there can run # copy to gcc dir so tests there can run
all::../gcc/g++-mapper-server$(exeext) all::../gcc/g++-mapper-server$(exeext)

17
c++tools/configure vendored
View File

@ -627,8 +627,7 @@ get_gcc_base_ver
EGREP EGREP
GREP GREP
CXXCPP CXXCPP
LD_PICFLAG PIEFLAG
PICFLAG
MAINTAINER MAINTAINER
CXX_AUX_TOOLS CXX_AUX_TOOLS
AUTOHEADER AUTOHEADER
@ -701,7 +700,6 @@ enable_c___tools
enable_maintainer_mode enable_maintainer_mode
enable_checking enable_checking
enable_default_pie enable_default_pie
enable_host_pie
with_gcc_major_version_only with_gcc_major_version_only
' '
ac_precious_vars='build_alias ac_precious_vars='build_alias
@ -1335,7 +1333,6 @@ Optional Features:
only specific categories of checks. Categories are: only specific categories of checks. Categories are:
yes,no,all,none,release. yes,no,all,none,release.
--enable-default-pie enable Position Independent Executable as default --enable-default-pie enable Position Independent Executable as default
--enable-host-pie build host code as PIE
Optional Packages: Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@ -2993,20 +2990,12 @@ fi
# Check whether --enable-default-pie was given. # Check whether --enable-default-pie was given.
# Check whether --enable-default-pie was given. # Check whether --enable-default-pie was given.
if test "${enable_default_pie+set}" = set; then : if test "${enable_default_pie+set}" = set; then :
enableval=$enable_default_pie; PICFLAG=-fPIE enableval=$enable_default_pie; PIEFLAG=-fPIE
else else
PICFLAG= PIEFLAG=
fi fi
# Enable --enable-host-pie
# Check whether --enable-host-pie was given.
if test "${enable_host_pie+set}" = set; then :
enableval=$enable_host_pie; PICFLAG=-fPIE; LD_PICFLAG=-pie
fi
# Check if O_CLOEXEC is defined by fcntl # Check if O_CLOEXEC is defined by fcntl

View File

@ -102,15 +102,8 @@ fi
AC_ARG_ENABLE(default-pie, AC_ARG_ENABLE(default-pie,
[AS_HELP_STRING([--enable-default-pie], [AS_HELP_STRING([--enable-default-pie],
[enable Position Independent Executable as default])], [enable Position Independent Executable as default])],
[PICFLAG=-fPIE], [PICFLAG=]) [PIEFLAG=-fPIE], [PIEFLAG=])
AC_SUBST([PIEFLAG])
# Enable --enable-host-pie
AC_ARG_ENABLE(host-pie,
[AS_HELP_STRING([--enable-host-pie],
[build host code as PIE])],
[PICFLAG=-fPIE; LD_PICFLAG=-pie], [])
AC_SUBST(PICFLAG)
AC_SUBST(LD_PICFLAG)
# Check if O_CLOEXEC is defined by fcntl # Check if O_CLOEXEC is defined by fcntl
AC_CACHE_CHECK(for O_CLOEXEC, ac_cv_o_cloexec, [ AC_CACHE_CHECK(for O_CLOEXEC, ac_cv_o_cloexec, [

22
configure vendored
View File

@ -685,8 +685,6 @@ get_gcc_base_ver
extra_host_zlib_configure_flags extra_host_zlib_configure_flags
extra_host_libiberty_configure_flags extra_host_libiberty_configure_flags
stage1_languages stage1_languages
PICFLAG
enable_host_pie
host_shared host_shared
extra_linker_plugin_flags extra_linker_plugin_flags
extra_linker_plugin_configure_flags extra_linker_plugin_configure_flags
@ -830,7 +828,6 @@ enable_lto
enable_linker_plugin_configure_flags enable_linker_plugin_configure_flags
enable_linker_plugin_flags enable_linker_plugin_flags
enable_host_shared enable_host_shared
enable_host_pie
enable_stage1_languages enable_stage1_languages
enable_objc_gc enable_objc_gc
with_target_bdw_gc with_target_bdw_gc
@ -1557,7 +1554,6 @@ Optional Features:
additional flags for configuring and building linker additional flags for configuring and building linker
plugins [none] plugins [none]
--enable-host-shared build host code as shared libraries --enable-host-shared build host code as shared libraries
--enable-host-pie build host code as PIE
--enable-stage1-languages[=all] --enable-stage1-languages[=all]
choose additional languages to build during stage1. choose additional languages to build during stage1.
Mostly useful for compiler development Mostly useful for compiler development
@ -8600,24 +8596,6 @@ fi
# Enable --enable-host-pie.
# Check whether --enable-host-pie was given.
if test "${enable_host_pie+set}" = set; then :
enableval=$enable_host_pie;
fi
if test x$enable_host_shared = xyes; then
PICFLAG=-fPIC
elif test x$enable_host_pie = xyes; then
PICFLAG=-fPIE
else
PICFLAG=
fi
# By default, C and C++ are the only stage 1 languages. # By default, C and C++ are the only stage 1 languages.
stage1_languages=,c, stage1_languages=,c,

View File

@ -1870,22 +1870,6 @@ AC_ARG_ENABLE(host-shared,
esac]) esac])
AC_SUBST(host_shared) AC_SUBST(host_shared)
# Enable --enable-host-pie.
AC_ARG_ENABLE(host-pie,
[AS_HELP_STRING([--enable-host-pie],
[build host code as PIE])])
AC_SUBST(enable_host_pie)
if test x$enable_host_shared = xyes; then
PICFLAG=-fPIC
elif test x$enable_host_pie = xyes; then
PICFLAG=-fPIE
else
PICFLAG=
fi
AC_SUBST(PICFLAG)
# By default, C and C++ are the only stage 1 languages. # By default, C and C++ are the only stage 1 languages.
stage1_languages=,c, stage1_languages=,c,

View File

@ -30,8 +30,6 @@ CC = @CC@
CFLAGS = @CFLAGS@ CFLAGS = @CFLAGS@
WARN_CFLAGS = @WARN_CFLAGS@ @WARN_PEDANTIC@ @WERROR@ WARN_CFLAGS = @WARN_CFLAGS@ @WARN_PEDANTIC@ @WERROR@
LDFLAGS = @LDFLAGS@ LDFLAGS = @LDFLAGS@
PICFLAG = @PICFLAG@
LD_PICFLAG = @LD_PICFLAG@
INCLUDES = -I. -I$(srcdir) -I../include -I$(srcdir)/../include INCLUDES = -I. -I$(srcdir) -I../include -I$(srcdir)/../include
FIXINC_CFLAGS = -DHAVE_CONFIG_H $(INCLUDES) FIXINC_CFLAGS = -DHAVE_CONFIG_H $(INCLUDES)
@ -75,7 +73,7 @@ default : all
# Now figure out from those variables how to compile and link. # Now figure out from those variables how to compile and link.
.c.o: .c.o:
$(CC) -c $(CFLAGS) $(PICFLAG) $(WARN_CFLAGS) $(CPPFLAGS) $(FIXINC_CFLAGS) $< $(CC) -c $(CFLAGS) $(WARN_CFLAGS) $(CPPFLAGS) $(FIXINC_CFLAGS) $<
# The only suffixes we want for implicit rules are .c and .o. # The only suffixes we want for implicit rules are .c and .o.
.SUFFIXES: .SUFFIXES:
@ -89,11 +87,7 @@ default : all
## ##
## # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # ## # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
ifeq ($(PICFLAG),)
LIBIBERTY=../libiberty/libiberty.a LIBIBERTY=../libiberty/libiberty.a
else
LIBIBERTY=../libiberty/pic/libiberty.a
endif
ALLOBJ = fixincl.o fixtests.o fixfixes.o server.o procopen.o \ ALLOBJ = fixincl.o fixtests.o fixfixes.o server.o procopen.o \
fixlib.o fixopts.o fixlib.o fixopts.o
@ -113,15 +107,15 @@ oneprocess : full-stamp
twoprocess : test-stamp $(AF) twoprocess : test-stamp $(AF)
full-stamp : $(ALLOBJ) $(LIBIBERTY) full-stamp : $(ALLOBJ) $(LIBIBERTY)
$(CC) $(CFLAGS) $(PICFLAG) $(LDFLAGS) $(LD_PICFLAG) -o $(FI) $(ALLOBJ) $(LIBIBERTY) $(CC) $(CFLAGS) $(LDFLAGS) -o $(FI) $(ALLOBJ) $(LIBIBERTY)
$(STAMP) $@ $(STAMP) $@
test-stamp : $(TESTOBJ) $(LIBIBERTY) test-stamp : $(TESTOBJ) $(LIBIBERTY)
$(CC) $(CFLAGS) $(PICFLAG) $(LDFLAGS) $(LD_PICFLAG) -o $(FI) $(TESTOBJ) $(LIBIBERTY) $(CC) $(CFLAGS) $(LDFLAGS) -o $(FI) $(TESTOBJ) $(LIBIBERTY)
$(STAMP) $@ $(STAMP) $@
$(AF): $(FIXOBJ) $(LIBIBERTY) $(AF): $(FIXOBJ) $(LIBIBERTY)
$(CC) $(CFLAGS) $(PICFLAG) $(LDFLAGS) $(LD_PICFLAG) -o $@ $(FIXOBJ) $(LIBIBERTY) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(FIXOBJ) $(LIBIBERTY)
$(ALLOBJ) : $(HDR) $(ALLOBJ) : $(HDR)
fixincl.o : fixincl.c $(srcdir)/fixincl.x fixincl.o : fixincl.c $(srcdir)/fixincl.x

13
fixincludes/configure vendored
View File

@ -623,8 +623,6 @@ ac_subst_vars='LTLIBOBJS
LIBOBJS LIBOBJS
get_gcc_base_ver get_gcc_base_ver
MAINT MAINT
LD_PICFLAG
PICFLAG
TARGET TARGET
target_noncanonical target_noncanonical
WERROR WERROR
@ -697,7 +695,6 @@ enable_option_checking
enable_werror_always enable_werror_always
with_local_prefix with_local_prefix
enable_twoprocess enable_twoprocess
enable_host_pie
enable_maintainer_mode enable_maintainer_mode
with_gcc_major_version_only with_gcc_major_version_only
' '
@ -1326,7 +1323,6 @@ Optional Features:
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-werror-always enable -Werror despite compiler version --enable-werror-always enable -Werror despite compiler version
--enable-twoprocess Use a separate process to apply the fixes --enable-twoprocess Use a separate process to apply the fixes
--enable-host-pie build host code as PIE
--enable-maintainer-mode enable make rules and dependencies not useful --enable-maintainer-mode enable make rules and dependencies not useful
(and sometimes confusing) to the casual installer (and sometimes confusing) to the casual installer
@ -4839,15 +4835,6 @@ $as_echo "#define SEPARATE_FIX_PROC 1" >>confdefs.h
fi fi
# Enable --enable-host-pie.
# Check whether --enable-host-pie was given.
if test "${enable_host_pie+set}" = set; then :
enableval=$enable_host_pie; PICFLAG=-fPIE; LD_PICFLAG=-pie
fi
case $host in case $host in
vax-dec-bsd* ) vax-dec-bsd* )

View File

@ -68,14 +68,6 @@ if test $TARGET = twoprocess; then
[Define if testing and fixing are done by separate process]) [Define if testing and fixing are done by separate process])
fi fi
# Enable --enable-host-pie.
AC_ARG_ENABLE(host-pie,
[AS_HELP_STRING([--enable-host-pie],
[build host code as PIE])],
[PICFLAG=-fPIE; LD_PICFLAG=-pie], [])
AC_SUBST(PICFLAG)
AC_SUBST(LD_PICFLAG)
case $host in case $host in
vax-dec-bsd* ) vax-dec-bsd* )
AC_DEFINE(exit, xexit, [Define to xexit if the host system does not support atexit]) AC_DEFINE(exit, xexit, [Define to xexit if the host system does not support atexit])

View File

@ -158,9 +158,6 @@ LDFLAGS = @LDFLAGS@
# Should we build position-independent host code? # Should we build position-independent host code?
PICFLAG = @PICFLAG@ PICFLAG = @PICFLAG@
# The linker flag for the above.
LD_PICFLAG = @LD_PICFLAG@
# Flags to determine code coverage. When coverage is disabled, this will # Flags to determine code coverage. When coverage is disabled, this will
# contain the optimization flags, as you normally want code coverage # contain the optimization flags, as you normally want code coverage
# without optimization. # without optimization.
@ -269,17 +266,18 @@ LINKER = $(CC)
LINKER_FLAGS = $(CFLAGS) LINKER_FLAGS = $(CFLAGS)
endif endif
enable_host_pie = @enable_host_pie@
# Enable Intel CET on Intel CET enabled host if needed. # Enable Intel CET on Intel CET enabled host if needed.
CET_HOST_FLAGS = @CET_HOST_FLAGS@ CET_HOST_FLAGS = @CET_HOST_FLAGS@
COMPILER += $(CET_HOST_FLAGS) COMPILER += $(CET_HOST_FLAGS)
# Maybe compile the compilers with -fPIE or -fPIC. NO_PIE_CFLAGS = @NO_PIE_CFLAGS@
COMPILER += $(PICFLAG) NO_PIE_FLAG = @NO_PIE_FLAG@
# Link with -pie, or -no-pie, depending on the above. # We don't want to compile the compilers with -fPIE, it make PCH fail.
LINKER += $(LD_PICFLAG) COMPILER += $(NO_PIE_CFLAGS)
# Link with -no-pie since we compile the compiler with -fno-PIE.
LINKER += $(NO_PIE_FLAG)
# Like LINKER, but use a mutex for serializing front end links. # Like LINKER, but use a mutex for serializing front end links.
ifeq (@DO_LINK_MUTEX@,true) ifeq (@DO_LINK_MUTEX@,true)
@ -1062,21 +1060,18 @@ ALL_CPPFLAGS = $(INCLUDES) $(CPPFLAGS)
ALL_COMPILERFLAGS = $(ALL_CXXFLAGS) ALL_COMPILERFLAGS = $(ALL_CXXFLAGS)
# This is the variable to use when using $(LINKER). # This is the variable to use when using $(LINKER).
ALL_LINKERFLAGS = $(ALL_CXXFLAGS) $(LD_PICFLAG) ALL_LINKERFLAGS = $(ALL_CXXFLAGS)
# Build and host support libraries. # Build and host support libraries.
# Use the "pic" build of libiberty if --enable-host-shared or --enable-host-pie, # Use the "pic" build of libiberty if --enable-host-shared, unless we are
# unless we are building for mingw. # building for mingw.
LIBIBERTY_PICDIR=$(if $(findstring mingw,$(target)),,pic) LIBIBERTY_PICDIR=$(if $(findstring mingw,$(target)),,pic)
ifneq ($(enable_host_shared)$(enable_host_pie),)
LIBIBERTY = ../libiberty/$(LIBIBERTY_PICDIR)/libiberty.a
else
LIBIBERTY = ../libiberty/libiberty.a
endif
ifeq ($(enable_host_shared),yes) ifeq ($(enable_host_shared),yes)
LIBIBERTY = ../libiberty/$(LIBIBERTY_PICDIR)/libiberty.a
BUILD_LIBIBERTY = $(build_libobjdir)/libiberty/$(LIBIBERTY_PICDIR)/libiberty.a BUILD_LIBIBERTY = $(build_libobjdir)/libiberty/$(LIBIBERTY_PICDIR)/libiberty.a
else else
LIBIBERTY = ../libiberty/libiberty.a
BUILD_LIBIBERTY = $(build_libobjdir)/libiberty/libiberty.a BUILD_LIBIBERTY = $(build_libobjdir)/libiberty/libiberty.a
endif endif

47
gcc/configure vendored
View File

@ -632,10 +632,10 @@ ac_includes_default="\
ac_subst_vars='LTLIBOBJS ac_subst_vars='LTLIBOBJS
LIBOBJS LIBOBJS
CET_HOST_FLAGS CET_HOST_FLAGS
LD_PICFLAG NO_PIE_FLAG
PICFLAG NO_PIE_CFLAGS
enable_default_pie enable_default_pie
enable_host_pie PICFLAG
enable_host_shared enable_host_shared
enable_plugin enable_plugin
pluginlibs pluginlibs
@ -1025,7 +1025,6 @@ enable_link_serialization
enable_version_specific_runtime_libs enable_version_specific_runtime_libs
enable_plugin enable_plugin
enable_host_shared enable_host_shared
enable_host_pie
enable_libquadmath_support enable_libquadmath_support
with_linker_hash_style with_linker_hash_style
with_diagnostics_color with_diagnostics_color
@ -1788,7 +1787,6 @@ Optional Features:
in a compiler-specific directory in a compiler-specific directory
--enable-plugin enable plugin support --enable-plugin enable plugin support
--enable-host-shared build host code as shared libraries --enable-host-shared build host code as shared libraries
--enable-host-pie build host code as PIE
--disable-libquadmath-support --disable-libquadmath-support
disable libquadmath support for Fortran disable libquadmath support for Fortran
--enable-default-pie enable Position Independent Executable as default --enable-default-pie enable Position Independent Executable as default
@ -19712,7 +19710,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF cat > conftest.$ac_ext <<_LT_EOF
#line 19727 "configure" #line 19713 "configure"
#include "confdefs.h" #include "confdefs.h"
#if HAVE_DLFCN_H #if HAVE_DLFCN_H
@ -19818,7 +19816,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF cat > conftest.$ac_ext <<_LT_EOF
#line 19833 "configure" #line 19819 "configure"
#include "confdefs.h" #include "confdefs.h"
#if HAVE_DLFCN_H #if HAVE_DLFCN_H
@ -31947,17 +31945,13 @@ fi
# Enable --enable-host-shared # Enable --enable-host-shared
# Check whether --enable-host-shared was given. # Check whether --enable-host-shared was given.
if test "${enable_host_shared+set}" = set; then : if test "${enable_host_shared+set}" = set; then :
enableval=$enable_host_shared; enableval=$enable_host_shared; PICFLAG=-fPIC
else
PICFLAG=
fi fi
# Enable --enable-host-pie
# Check whether --enable-host-pie was given.
if test "${enable_host_pie+set}" = set; then :
enableval=$enable_host_pie;
fi
# Check whether --enable-libquadmath-support was given. # Check whether --enable-libquadmath-support was given.
@ -32111,6 +32105,10 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
$as_echo "$gcc_cv_c_no_fpie" >&6; } $as_echo "$gcc_cv_c_no_fpie" >&6; }
if test "$gcc_cv_c_no_fpie" = "yes"; then
NO_PIE_CFLAGS="-fno-PIE"
fi
# Check if -no-pie works. # Check if -no-pie works.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
@ -32135,27 +32133,10 @@ rm -f core conftest.err conftest.$ac_objext \
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
$as_echo "$gcc_cv_no_pie" >&6; } $as_echo "$gcc_cv_no_pie" >&6; }
if test "$gcc_cv_no_pie" = "yes"; then
if test x$enable_host_shared = xyes; then NO_PIE_FLAG="-no-pie"
PICFLAG=-fPIC
elif test x$enable_host_pie = xyes; then
PICFLAG=-fPIE
elif test x$gcc_cv_c_no_fpie = xyes; then
PICFLAG=-fno-PIE
else
PICFLAG=
fi fi
if test x$enable_host_pie = xyes; then
LD_PICFLAG=-pie
elif test x$gcc_cv_no_pie = xyes; then
LD_PICFLAG=-no-pie
else
LD_PICFLAG=
fi
# Enable Intel CET on Intel CET enabled host if jit is enabled. # Enable Intel CET on Intel CET enabled host if jit is enabled.
# Check whether --enable-cet was given. # Check whether --enable-cet was given.

View File

@ -7364,14 +7364,11 @@ fi
# Enable --enable-host-shared # Enable --enable-host-shared
AC_ARG_ENABLE(host-shared, AC_ARG_ENABLE(host-shared,
[AS_HELP_STRING([--enable-host-shared], [AS_HELP_STRING([--enable-host-shared],
[build host code as shared libraries])]) [build host code as shared libraries])],
[PICFLAG=-fPIC], [PICFLAG=])
AC_SUBST(enable_host_shared) AC_SUBST(enable_host_shared)
AC_SUBST(PICFLAG)
# Enable --enable-host-pie
AC_ARG_ENABLE(host-pie,
[AS_HELP_STRING([--enable-host-pie],
[build host code as PIE])])
AC_SUBST(enable_host_pie)
AC_ARG_ENABLE(libquadmath-support, AC_ARG_ENABLE(libquadmath-support,
[AS_HELP_STRING([--disable-libquadmath-support], [AS_HELP_STRING([--disable-libquadmath-support],
@ -7493,6 +7490,10 @@ AC_CACHE_CHECK([for -fno-PIE option],
[gcc_cv_c_no_fpie=yes], [gcc_cv_c_no_fpie=yes],
[gcc_cv_c_no_fpie=no]) [gcc_cv_c_no_fpie=no])
CXXFLAGS="$saved_CXXFLAGS"]) CXXFLAGS="$saved_CXXFLAGS"])
if test "$gcc_cv_c_no_fpie" = "yes"; then
NO_PIE_CFLAGS="-fno-PIE"
fi
AC_SUBST([NO_PIE_CFLAGS])
# Check if -no-pie works. # Check if -no-pie works.
AC_CACHE_CHECK([for -no-pie option], AC_CACHE_CHECK([for -no-pie option],
@ -7503,27 +7504,10 @@ AC_CACHE_CHECK([for -no-pie option],
[gcc_cv_no_pie=yes], [gcc_cv_no_pie=yes],
[gcc_cv_no_pie=no]) [gcc_cv_no_pie=no])
LDFLAGS="$saved_LDFLAGS"]) LDFLAGS="$saved_LDFLAGS"])
if test "$gcc_cv_no_pie" = "yes"; then
if test x$enable_host_shared = xyes; then NO_PIE_FLAG="-no-pie"
PICFLAG=-fPIC
elif test x$enable_host_pie = xyes; then
PICFLAG=-fPIE
elif test x$gcc_cv_c_no_fpie = xyes; then
PICFLAG=-fno-PIE
else
PICFLAG=
fi fi
AC_SUBST([NO_PIE_FLAG])
if test x$enable_host_pie = xyes; then
LD_PICFLAG=-pie
elif test x$gcc_cv_no_pie = xyes; then
LD_PICFLAG=-no-pie
else
LD_PICFLAG=
fi
AC_SUBST([PICFLAG])
AC_SUBST([LD_PICFLAG])
# Enable Intel CET on Intel CET enabled host if jit is enabled. # Enable Intel CET on Intel CET enabled host if jit is enabled.
GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) GCC_CET_HOST_FLAGS(CET_HOST_FLAGS)

View File

@ -64,7 +64,7 @@ ALL_DFLAGS = $(DFLAGS-$@) $(GDCFLAGS) -fversion=IN_GCC $(CHECKING_DFLAGS) \
$(PICFLAG) $(ALIASING_FLAGS) $(NOEXCEPTION_DFLAGS) $(COVERAGE_FLAGS) \ $(PICFLAG) $(ALIASING_FLAGS) $(NOEXCEPTION_DFLAGS) $(COVERAGE_FLAGS) \
$(WARN_DFLAGS) $(WARN_DFLAGS)
DCOMPILE.base = $(GDC) -c $(ALL_DFLAGS) -o $@ DCOMPILE.base = $(GDC) $(NO_PIE_CFLAGS) -c $(ALL_DFLAGS) -o $@
DCOMPILE = $(DCOMPILE.base) -MT $@ -MMD -MP -MF $(@D)/$(DEPDIR)/$(*F).TPo DCOMPILE = $(DCOMPILE.base) -MT $@ -MMD -MP -MF $(@D)/$(DEPDIR)/$(*F).TPo
DPOSTCOMPILE = @mv $(@D)/$(DEPDIR)/$(*F).TPo $(@D)/$(DEPDIR)/$(*F).Po DPOSTCOMPILE = @mv $(@D)/$(DEPDIR)/$(*F).TPo $(@D)/$(DEPDIR)/$(*F).Po
DLINKER = $(GDC) $(NO_PIE_FLAG) -lstdc++ DLINKER = $(GDC) $(NO_PIE_FLAG) -lstdc++

View File

@ -1026,26 +1026,14 @@ code.
@item --enable-host-shared @item --enable-host-shared
Specify that the @emph{host} code should be built into position-independent Specify that the @emph{host} code should be built into position-independent
machine code (with @option{-fPIC}), allowing it to be used within shared machine code (with -fPIC), allowing it to be used within shared libraries,
libraries, but yielding a slightly slower compiler. but yielding a slightly slower compiler.
This option is required when building the libgccjit.so library. This option is required when building the libgccjit.so library.
Contrast with @option{--enable-shared}, which affects @emph{target} Contrast with @option{--enable-shared}, which affects @emph{target}
libraries. libraries.
@item --enable-host-pie
Specify that the @emph{host} executables should be built into
position-independent executables (with @option{-fPIE} and @option{-pie}),
yielding a slightly slower compiler (but faster than
@option{--enable-host-shared}). Position-independent executables are loaded
at random addresses each time they are executed, therefore provide additional
protection against Return Oriented Programming (ROP) attacks.
@option{--enable-host-pie}) may be used with @option{--enable-host-shared}),
in which case @option{-fPIC} is used when compiling, and @option{-pie} when
linking.
@item @anchor{with-gnu-as}--with-gnu-as @item @anchor{with-gnu-as}--with-gnu-as
Specify that the compiler should assume that the Specify that the compiler should assume that the
assembler it finds is the GNU assembler. However, this does not modify assembler it finds is the GNU assembler. However, this does not modify

View File

@ -54,7 +54,7 @@ CTAGS = @CTAGS@
ETAGS = @ETAGS@ ETAGS = @ETAGS@
MKID = @MKID@ MKID = @MKID@
COMPILE = $(CC) -c $(CPPFLAGS) $(CFLAGS) @PICFLAG@ $(DEFS) $(DEFS-$@) $(INCLUDES) COMPILE = $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(DEFS-$@) $(INCLUDES)
HEADERS = \ HEADERS = \
gmo.h \ gmo.h \

24
intl/configure vendored
View File

@ -623,8 +623,6 @@ ac_header_list=
ac_subst_vars='LTLIBOBJS ac_subst_vars='LTLIBOBJS
LIBOBJS LIBOBJS
PICFLAG PICFLAG
enable_host_pie
enable_host_shared
BISON3_NO BISON3_NO
BISON3_YES BISON3_YES
INCINTL INCINTL
@ -733,7 +731,6 @@ with_libintl_prefix
with_libintl_type with_libintl_type
enable_maintainer_mode enable_maintainer_mode
enable_host_shared enable_host_shared
enable_host_pie
' '
ac_precious_vars='build_alias ac_precious_vars='build_alias
host_alias host_alias
@ -1359,7 +1356,6 @@ Optional Features:
--disable-rpath do not hardcode runtime library paths --disable-rpath do not hardcode runtime library paths
--enable-maintainer-mode enable rules only needed by maintainers --enable-maintainer-mode enable rules only needed by maintainers
--enable-host-shared build host code as shared libraries --enable-host-shared build host code as shared libraries
--enable-host-pie build host code as PIE
Optional Packages: Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@ -6856,31 +6852,15 @@ fi
# Enable --enable-host-shared.
# Check whether --enable-host-shared was given. # Check whether --enable-host-shared was given.
if test "${enable_host_shared+set}" = set; then : if test "${enable_host_shared+set}" = set; then :
enableval=$enable_host_shared; enableval=$enable_host_shared; PICFLAG=-fPIC
fi
# Enable --enable-host-pie.
# Check whether --enable-host-pie was given.
if test "${enable_host_pie+set}" = set; then :
enableval=$enable_host_pie;
fi
if test x$enable_host_shared = xyes; then
PICFLAG=-fPIC
elif test x$enable_host_pie = xyes; then
PICFLAG=-fPIE
else else
PICFLAG= PICFLAG=
fi fi
ac_config_files="$ac_config_files Makefile config.intl" ac_config_files="$ac_config_files Makefile config.intl"
cat >confcache <<\_ACEOF cat >confcache <<\_ACEOF

View File

@ -83,25 +83,10 @@ fi
AC_SUBST(BISON3_YES) AC_SUBST(BISON3_YES)
AC_SUBST(BISON3_NO) AC_SUBST(BISON3_NO)
# Enable --enable-host-shared.
AC_ARG_ENABLE(host-shared, AC_ARG_ENABLE(host-shared,
[AS_HELP_STRING([--enable-host-shared], [AS_HELP_STRING([--enable-host-shared],
[build host code as shared libraries])]) [build host code as shared libraries])],
AC_SUBST(enable_host_shared) [PICFLAG=-fPIC], [PICFLAG=])
# Enable --enable-host-pie.
AC_ARG_ENABLE(host-pie,
[AS_HELP_STRING([--enable-host-pie],
[build host code as PIE])])
AC_SUBST(enable_host_pie)
if test x$enable_host_shared = xyes; then
PICFLAG=-fPIC
elif test x$enable_host_pie = xyes; then
PICFLAG=-fPIE
else
PICFLAG=
fi
AC_SUBST(PICFLAG) AC_SUBST(PICFLAG)
AC_CONFIG_FILES(Makefile config.intl) AC_CONFIG_FILES(Makefile config.intl)

View File

@ -31,7 +31,7 @@ endif
CXXOPTS += $(filter-out -DHAVE_CONFIG_H,@DEFS@) -include config.h CXXOPTS += $(filter-out -DHAVE_CONFIG_H,@DEFS@) -include config.h
# Linker options # Linker options
LDFLAGS := @LDFLAGS@ @LD_PICFLAG@ LDFLAGS := @LDFLAGS@
LIBS := @LIBS@ LIBS := @LIBS@
# Per-source & per-directory compile flags (warning: recursive) # Per-source & per-directory compile flags (warning: recursive)

30
libcody/configure vendored
View File

@ -591,10 +591,7 @@ configure_args
AR AR
RANLIB RANLIB
EXCEPTIONS EXCEPTIONS
LD_PICFLAG
PICFLAG PICFLAG
enable_host_pie
enable_host_shared
OBJEXT OBJEXT
EXEEXT EXEEXT
ac_ct_CXX ac_ct_CXX
@ -656,7 +653,6 @@ enable_maintainer_mode
with_compiler with_compiler
enable_checking enable_checking
enable_host_shared enable_host_shared
enable_host_pie
enable_exceptions enable_exceptions
' '
ac_precious_vars='build_alias ac_precious_vars='build_alias
@ -1290,7 +1286,6 @@ Optional Features:
yes,no,all,none,release. Flags are: misc,valgrind or yes,no,all,none,release. Flags are: misc,valgrind or
other strings other strings
--enable-host-shared build host code as shared libraries --enable-host-shared build host code as shared libraries
--enable-host-pie build host code as PIE
--enable-exceptions enable exceptions & rtti --enable-exceptions enable exceptions & rtti
Optional Packages: Optional Packages:
@ -2640,34 +2635,11 @@ fi
# Enable --enable-host-shared. # Enable --enable-host-shared.
# Check whether --enable-host-shared was given. # Check whether --enable-host-shared was given.
if test "${enable_host_shared+set}" = set; then : if test "${enable_host_shared+set}" = set; then :
enableval=$enable_host_shared; enableval=$enable_host_shared; PICFLAG=-fPIC
fi
# Enable --enable-host-pie.
# Check whether --enable-host-pie was given.
if test "${enable_host_pie+set}" = set; then :
enableval=$enable_host_pie;
fi
if test x$enable_host_shared = xyes; then
PICFLAG=-fPIC
elif test x$enable_host_pie = xyes; then
PICFLAG=-fPIE
else else
PICFLAG= PICFLAG=
fi fi
if test x$enable_host_pie = xyes; then
LD_PICFLAG=-pie
else
LD_PICFLAG=
fi
# Check whether --enable-exceptions was given. # Check whether --enable-exceptions was given.

View File

@ -63,31 +63,9 @@ fi
# Enable --enable-host-shared. # Enable --enable-host-shared.
AC_ARG_ENABLE(host-shared, AC_ARG_ENABLE(host-shared,
[AS_HELP_STRING([--enable-host-shared], [AS_HELP_STRING([--enable-host-shared],
[build host code as shared libraries])]) [build host code as shared libraries])],
AC_SUBST(enable_host_shared) [PICFLAG=-fPIC], [PICFLAG=])
# Enable --enable-host-pie.
AC_ARG_ENABLE(host-pie,
[AS_HELP_STRING([--enable-host-pie],
[build host code as PIE])])
AC_SUBST(enable_host_pie)
if test x$enable_host_shared = xyes; then
PICFLAG=-fPIC
elif test x$enable_host_pie = xyes; then
PICFLAG=-fPIE
else
PICFLAG=
fi
if test x$enable_host_pie = xyes; then
LD_PICFLAG=-pie
else
LD_PICFLAG=
fi
AC_SUBST(PICFLAG) AC_SUBST(PICFLAG)
AC_SUBST(LD_PICFLAG)
NMS_ENABLE_EXCEPTIONS NMS_ENABLE_EXCEPTIONS

22
libcpp/configure vendored
View File

@ -625,8 +625,6 @@ ac_includes_default="\
ac_subst_vars='LTLIBOBJS ac_subst_vars='LTLIBOBJS
CET_HOST_FLAGS CET_HOST_FLAGS
PICFLAG PICFLAG
enable_host_pie
enable_host_shared
MAINT MAINT
USED_CATALOGS USED_CATALOGS
PACKAGE PACKAGE
@ -740,7 +738,6 @@ enable_maintainer_mode
enable_checking enable_checking
enable_canonical_system_headers enable_canonical_system_headers
enable_host_shared enable_host_shared
enable_host_pie
enable_cet enable_cet
enable_valgrind_annotations enable_valgrind_annotations
' '
@ -1382,7 +1379,6 @@ Optional Features:
--enable-canonical-system-headers --enable-canonical-system-headers
enable or disable system headers canonicalization enable or disable system headers canonicalization
--enable-host-shared build host code as shared libraries --enable-host-shared build host code as shared libraries
--enable-host-pie build host code as PIE
--enable-cet enable Intel CET in host libraries [default=auto] --enable-cet enable Intel CET in host libraries [default=auto]
--enable-valgrind-annotations --enable-valgrind-annotations
enable valgrind runtime interaction enable valgrind runtime interaction
@ -7609,23 +7605,7 @@ esac
# Enable --enable-host-shared. # Enable --enable-host-shared.
# Check whether --enable-host-shared was given. # Check whether --enable-host-shared was given.
if test "${enable_host_shared+set}" = set; then : if test "${enable_host_shared+set}" = set; then :
enableval=$enable_host_shared; enableval=$enable_host_shared; PICFLAG=-fPIC
fi
# Enable --enable-host-pie.
# Check whether --enable-host-pie was given.
if test "${enable_host_pie+set}" = set; then :
enableval=$enable_host_pie;
fi
if test x$enable_host_shared = xyes; then
PICFLAG=-fPIC
elif test x$enable_host_pie = xyes; then
PICFLAG=-fPIE
else else
PICFLAG= PICFLAG=
fi fi

View File

@ -211,23 +211,8 @@ esac
# Enable --enable-host-shared. # Enable --enable-host-shared.
AC_ARG_ENABLE(host-shared, AC_ARG_ENABLE(host-shared,
[AS_HELP_STRING([--enable-host-shared], [AS_HELP_STRING([--enable-host-shared],
[build host code as shared libraries])]) [build host code as shared libraries])],
AC_SUBST(enable_host_shared) [PICFLAG=-fPIC], [PICFLAG=])
# Enable --enable-host-pie.
AC_ARG_ENABLE(host-pie,
[AS_HELP_STRING([--enable-host-pie],
[build host code as PIE])])
AC_SUBST(enable_host_pie)
if test x$enable_host_shared = xyes; then
PICFLAG=-fPIC
elif test x$enable_host_pie = xyes; then
PICFLAG=-fPIE
else
PICFLAG=
fi
AC_SUBST(PICFLAG) AC_SUBST(PICFLAG)
# Enable Intel CET on Intel CET enabled host if jit is enabled. # Enable Intel CET on Intel CET enabled host if jit is enabled.

View File

@ -626,8 +626,6 @@ ac_subst_vars='LTLIBOBJS
LIBOBJS LIBOBJS
CET_HOST_FLAGS CET_HOST_FLAGS
PICFLAG PICFLAG
enable_host_pie
enable_host_shared
ADDITIONAL_OBJS ADDITIONAL_OBJS
enable_decimal_float enable_decimal_float
target_os target_os
@ -708,7 +706,6 @@ enable_werror_always
enable_maintainer_mode enable_maintainer_mode
enable_decimal_float enable_decimal_float
enable_host_shared enable_host_shared
enable_host_pie
enable_cet enable_cet
' '
ac_precious_vars='build_alias ac_precious_vars='build_alias
@ -1341,7 +1338,6 @@ Optional Features:
or 'dpd' choses which decimal floating point format or 'dpd' choses which decimal floating point format
to use to use
--enable-host-shared build host code as shared libraries --enable-host-shared build host code as shared libraries
--enable-host-pie build host code as PIE
--enable-cet enable Intel CET in host libraries [default=auto] --enable-cet enable Intel CET in host libraries [default=auto]
Some influential environment variables: Some influential environment variables:
@ -5190,23 +5186,7 @@ $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
# Enable --enable-host-shared. # Enable --enable-host-shared.
# Check whether --enable-host-shared was given. # Check whether --enable-host-shared was given.
if test "${enable_host_shared+set}" = set; then : if test "${enable_host_shared+set}" = set; then :
enableval=$enable_host_shared; enableval=$enable_host_shared; PICFLAG=-fPIC
fi
# Enable --enable-host-pie.
# Check whether --enable-host-pie was given.
if test "${enable_host_pie+set}" = set; then :
enableval=$enable_host_pie;
fi
if test x$enable_host_shared = xyes; then
PICFLAG=-fPIC
elif test x$enable_host_pie = xyes; then
PICFLAG=-fPIE
else else
PICFLAG= PICFLAG=
fi fi

View File

@ -100,23 +100,8 @@ AC_C_BIGENDIAN
# Enable --enable-host-shared. # Enable --enable-host-shared.
AC_ARG_ENABLE(host-shared, AC_ARG_ENABLE(host-shared,
[AS_HELP_STRING([--enable-host-shared], [AS_HELP_STRING([--enable-host-shared],
[build host code as shared libraries])]) [build host code as shared libraries])],
AC_SUBST(enable_host_shared) [PICFLAG=-fPIC], [PICFLAG=])
# Enable --enable-host-pie.
AC_ARG_ENABLE(host-pie,
[AS_HELP_STRING([--enable-host-pie],
[build host code as PIE])])
AC_SUBST(enable_host_pie)
if test x$enable_host_shared = xyes; then
PICFLAG=-fPIC
elif test x$enable_host_pie = xyes; then
PICFLAG=-fPIE
else
PICFLAG=
fi
AC_SUBST(PICFLAG) AC_SUBST(PICFLAG)
# Enable Intel CET on Intel CET enabled host if jit is enabled. # Enable Intel CET on Intel CET enabled host if jit is enabled.

4
libiberty/configure vendored
View File

@ -5258,8 +5258,8 @@ case "${enable_shared}" in
*) shared=yes ;; *) shared=yes ;;
esac esac
# ...unless --enable-host-{shared,pie} was passed from top-level config: # ...unless --enable-host-shared was passed from top-level config:
if [ "${enable_host_shared}" = "yes" ] || [ "${enable_host_pie}" = "yes" ]; then if [ "${enable_host_shared}" = "yes" ]; then
shared=yes shared=yes
fi fi

View File

@ -233,8 +233,8 @@ case "${enable_shared}" in
*) shared=yes ;; *) shared=yes ;;
esac esac
# ...unless --enable-host-{shared,pie} was passed from top-level config: # ...unless --enable-host-shared was passed from top-level config:
if [[ "${enable_host_shared}" = "yes" ]] || [[ "${enable_host_pie}" = "yes" ]]; then if [[ "${enable_host_shared}" = "yes" ]]; then
shared=yes shared=yes
fi fi

28
zlib/configure vendored
View File

@ -635,8 +635,6 @@ am__EXEEXT_TRUE
LTLIBOBJS LTLIBOBJS
LIBOBJS LIBOBJS
PICFLAG PICFLAG
enable_host_pie
enable_host_shared
TARGET_LIBRARY_FALSE TARGET_LIBRARY_FALSE
TARGET_LIBRARY_TRUE TARGET_LIBRARY_TRUE
toolexeclibdir toolexeclibdir
@ -780,7 +778,6 @@ with_gnu_ld
enable_libtool_lock enable_libtool_lock
with_toolexeclibdir with_toolexeclibdir
enable_host_shared enable_host_shared
enable_host_pie
' '
ac_precious_vars='build_alias ac_precious_vars='build_alias
host_alias host_alias
@ -1423,7 +1420,6 @@ Optional Features:
optimize for fast installation [default=yes] optimize for fast installation [default=yes]
--disable-libtool-lock avoid locking (might break parallel builds) --disable-libtool-lock avoid locking (might break parallel builds)
--enable-host-shared build host code as shared libraries --enable-host-shared build host code as shared libraries
--enable-host-pie build host code as PIE
Optional Packages: Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@ -10763,7 +10759,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF cat > conftest.$ac_ext <<_LT_EOF
#line 10778 "configure" #line 10762 "configure"
#include "confdefs.h" #include "confdefs.h"
#if HAVE_DLFCN_H #if HAVE_DLFCN_H
@ -10869,7 +10865,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF cat > conftest.$ac_ext <<_LT_EOF
#line 10884 "configure" #line 10868 "configure"
#include "confdefs.h" #include "confdefs.h"
#if HAVE_DLFCN_H #if HAVE_DLFCN_H
@ -11552,31 +11548,15 @@ else
multilib_arg= multilib_arg=
fi fi
# Enable --enable-host-shared.
# Check whether --enable-host-shared was given. # Check whether --enable-host-shared was given.
if test "${enable_host_shared+set}" = set; then : if test "${enable_host_shared+set}" = set; then :
enableval=$enable_host_shared; enableval=$enable_host_shared; PICFLAG=-fPIC
fi
# Enable --enable-host-pie.
# Check whether --enable-host-pie was given.
if test "${enable_host_pie+set}" = set; then :
enableval=$enable_host_pie;
fi
if test x$enable_host_shared = xyes; then
PICFLAG=-fPIC
elif test x$enable_host_pie = xyes; then
PICFLAG=-fPIE
else else
PICFLAG= PICFLAG=
fi fi
ac_config_files="$ac_config_files Makefile" ac_config_files="$ac_config_files Makefile"
cat >confcache <<\_ACEOF cat >confcache <<\_ACEOF

View File

@ -122,26 +122,11 @@ else
multilib_arg= multilib_arg=
fi fi
# Enable --enable-host-shared.
AC_ARG_ENABLE(host-shared, AC_ARG_ENABLE(host-shared,
[AS_HELP_STRING([--enable-host-shared], [AS_HELP_STRING([--enable-host-shared],
[build host code as shared libraries])]) [build host code as shared libraries])],
AC_SUBST(enable_host_shared) [PICFLAG=-fPIC], [PICFLAG=])
# Enable --enable-host-pie.
AC_ARG_ENABLE(host-pie,
[AS_HELP_STRING([--enable-host-pie],
[build host code as PIE])])
AC_SUBST(enable_host_pie)
if test x$enable_host_shared = xyes; then
PICFLAG=-fPIC
elif test x$enable_host_pie = xyes; then
PICFLAG=-fPIE
else
PICFLAG=
fi
AC_SUBST(PICFLAG) AC_SUBST(PICFLAG)
AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([Makefile])
AC_OUTPUT AC_OUTPUT