mirror of git://gcc.gnu.org/git/gcc.git
Add --enable-host-shared configuration option
/ * configure.ac: Add --enable-host-shared * configure: Regenerate. gcc/ * Makefile.in (PICFLAG): New. (enable_host_shared): New. (INTERNAL_CFLAGS): Use PICFLAG. (LIBIBERTY): Use pic build of libiberty.a if configured with --enable-host-shared. * configure.ac: Add --enable-host-shared, setting up new PICFLAG variable. * configure: Regenerate. * doc/install.texi (--enable-shared): Add note contrasting it with... (--enable-host-shared): New option. libbacktrace/ * configure.ac: Add --enable-host-shared, setting up pre-existing PIC_FLAG variable within Makefile.am et al. * configure: Regenerate. libcpp/ * Makefile.in (PICFLAG): New. (ALL_CFLAGS): Add PICFLAG. (ALL_CXXFLAGS): Likewise. * configure.ac: Add --enable-host-shared, setting up new PICFLAG variable. * configure: Regenerate. libdecnumber/ * Makefile.in (PICFLAG): New. (ALL_CFLAGS): Add PICFLAG. * configure.ac: Add --enable-host-shared, setting up new PICFLAG variable. * configure: Regenerate. libiberty/ * configure.ac: If --enable-host-shared, use -fPIC. * configure: Regenerate. zlib/ * configure.ac: Add --enable-host-shared, setting up new PICFLAG variable. * Makefile.am: Add PICFLAG to libz_a_CFLAGS. * Makefile.in: Regenerate. * configure: Regenerate. From-SVN: r203632
This commit is contained in:
parent
37ea0d87a3
commit
459260ecf8
|
|
@ -1,3 +1,8 @@
|
||||||
|
2013-10-15 David Malcolm <dmalcolm@redhat.com>
|
||||||
|
|
||||||
|
* configure.ac: Add --enable-host-shared
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
2013-01-10 Joern Rennecke <joern.rennecke@embecosm.com>
|
2013-01-10 Joern Rennecke <joern.rennecke@embecosm.com>
|
||||||
|
|
||||||
Import from savannah.gnu.org:
|
Import from savannah.gnu.org:
|
||||||
|
|
|
||||||
|
|
@ -556,6 +556,7 @@ enable_option_checking=no
|
||||||
ac_subst_vars='LTLIBOBJS
|
ac_subst_vars='LTLIBOBJS
|
||||||
LIBOBJS
|
LIBOBJS
|
||||||
compare_exclusions
|
compare_exclusions
|
||||||
|
host_shared
|
||||||
stage2_werror_flag
|
stage2_werror_flag
|
||||||
stage1_checking
|
stage1_checking
|
||||||
stage1_cflags
|
stage1_cflags
|
||||||
|
|
@ -787,6 +788,7 @@ with_build_time_tools
|
||||||
enable_maintainer_mode
|
enable_maintainer_mode
|
||||||
enable_stage1_checking
|
enable_stage1_checking
|
||||||
enable_werror
|
enable_werror
|
||||||
|
enable_host_shared
|
||||||
'
|
'
|
||||||
ac_precious_vars='build_alias
|
ac_precious_vars='build_alias
|
||||||
host_alias
|
host_alias
|
||||||
|
|
@ -1490,6 +1492,7 @@ Optional Features:
|
||||||
choose additional checking for stage1 of the
|
choose additional checking for stage1 of the
|
||||||
compiler
|
compiler
|
||||||
--enable-werror enable -Werror in bootstrap stage2 and later
|
--enable-werror enable -Werror in bootstrap stage2 and later
|
||||||
|
--enable-host-shared build host code as shared libraries
|
||||||
|
|
||||||
Optional Packages:
|
Optional Packages:
|
||||||
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
||||||
|
|
@ -14570,6 +14573,16 @@ case ${enable_werror} in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
# Enable --enable-host-shared.
|
||||||
|
# Check whether --enable-host-shared was given.
|
||||||
|
if test "${enable_host_shared+set}" = set; then :
|
||||||
|
enableval=$enable_host_shared; host_shared=$enableval
|
||||||
|
else
|
||||||
|
host_shared=no
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Specify what files to not compare during bootstrap.
|
# Specify what files to not compare during bootstrap.
|
||||||
|
|
||||||
compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
|
compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
|
||||||
|
|
|
||||||
|
|
@ -3301,6 +3301,13 @@ case ${enable_werror} in
|
||||||
esac
|
esac
|
||||||
AC_SUBST(stage2_werror_flag)
|
AC_SUBST(stage2_werror_flag)
|
||||||
|
|
||||||
|
# Enable --enable-host-shared.
|
||||||
|
AC_ARG_ENABLE(host-shared,
|
||||||
|
[AS_HELP_STRING([--enable-host-shared],
|
||||||
|
[build host code as shared libraries])],
|
||||||
|
[host_shared=$enableval], [host_shared=no])
|
||||||
|
AC_SUBST(host_shared)
|
||||||
|
|
||||||
# Specify what files to not compare during bootstrap.
|
# Specify what files to not compare during bootstrap.
|
||||||
|
|
||||||
compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
|
compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,17 @@
|
||||||
|
2013-10-15 David Malcolm <dmalcolm@redhat.com>
|
||||||
|
|
||||||
|
* Makefile.in (PICFLAG): New.
|
||||||
|
(enable_host_shared): New.
|
||||||
|
(INTERNAL_CFLAGS): Use PICFLAG.
|
||||||
|
(LIBIBERTY): Use pic build of libiberty.a if configured with
|
||||||
|
--enable-host-shared.
|
||||||
|
* configure.ac: Add --enable-host-shared, setting up new
|
||||||
|
PICFLAG variable.
|
||||||
|
* configure: Regenerate.
|
||||||
|
* doc/install.texi (--enable-shared): Add note contrasting it
|
||||||
|
with...
|
||||||
|
(--enable-host-shared): New option.
|
||||||
|
|
||||||
2013-10-15 Richard Biener <rguenther@suse.de>
|
2013-10-15 Richard Biener <rguenther@suse.de>
|
||||||
|
|
||||||
* tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
|
* tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
|
||||||
|
|
|
||||||
|
|
@ -135,6 +135,9 @@ CFLAGS = @CFLAGS@
|
||||||
CXXFLAGS = @CXXFLAGS@
|
CXXFLAGS = @CXXFLAGS@
|
||||||
LDFLAGS = @LDFLAGS@
|
LDFLAGS = @LDFLAGS@
|
||||||
|
|
||||||
|
# Should we build position-independent host code?
|
||||||
|
PICFLAG = @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.
|
||||||
|
|
@ -346,6 +349,8 @@ PLUGINLIBS = @pluginlibs@
|
||||||
|
|
||||||
enable_plugin = @enable_plugin@
|
enable_plugin = @enable_plugin@
|
||||||
|
|
||||||
|
enable_host_shared = @enable_host_shared@
|
||||||
|
|
||||||
CPPLIB = ../libcpp/libcpp.a
|
CPPLIB = ../libcpp/libcpp.a
|
||||||
CPPINC = -I$(srcdir)/../libcpp/include
|
CPPINC = -I$(srcdir)/../libcpp/include
|
||||||
|
|
||||||
|
|
@ -955,7 +960,7 @@ CONTEXT_H = context.h
|
||||||
# programs built during a bootstrap.
|
# programs built during a bootstrap.
|
||||||
# autoconf inserts -DCROSS_DIRECTORY_STRUCTURE if we are building a
|
# autoconf inserts -DCROSS_DIRECTORY_STRUCTURE if we are building a
|
||||||
# cross compiler which does not use the native headers and libraries.
|
# 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,
|
# This is the variable actually used when we compile. If you change this,
|
||||||
# you probably want to update BUILD_CFLAGS in configure.ac
|
# you probably want to update BUILD_CFLAGS in configure.ac
|
||||||
|
|
@ -978,8 +983,15 @@ ALL_COMPILERFLAGS = $(ALL_CXXFLAGS)
|
||||||
ALL_LINKERFLAGS = $(ALL_CXXFLAGS)
|
ALL_LINKERFLAGS = $(ALL_CXXFLAGS)
|
||||||
|
|
||||||
# Build and host support libraries.
|
# 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
|
LIBIBERTY = ../libiberty/libiberty.a
|
||||||
BUILD_LIBIBERTY = $(build_libobjdir)/libiberty/libiberty.a
|
BUILD_LIBIBERTY = $(build_libobjdir)/libiberty/libiberty.a
|
||||||
|
endif
|
||||||
|
|
||||||
# Dependencies on the intl and portability libraries.
|
# Dependencies on the intl and portability libraries.
|
||||||
LIBDEPS= libcommon.a $(CPPLIB) $(LIBIBERTY) $(LIBINTL_DEP) $(LIBICONV_DEP) \
|
LIBDEPS= libcommon.a $(CPPLIB) $(LIBIBERTY) $(LIBINTL_DEP) $(LIBICONV_DEP) \
|
||||||
|
|
|
||||||
|
|
@ -600,6 +600,8 @@ ac_includes_default="\
|
||||||
|
|
||||||
ac_subst_vars='LTLIBOBJS
|
ac_subst_vars='LTLIBOBJS
|
||||||
LIBOBJS
|
LIBOBJS
|
||||||
|
PICFLAG
|
||||||
|
enable_host_shared
|
||||||
enable_plugin
|
enable_plugin
|
||||||
pluginlibs
|
pluginlibs
|
||||||
CLOOGINC
|
CLOOGINC
|
||||||
|
|
@ -921,6 +923,7 @@ enable_maintainer_mode
|
||||||
enable_link_mutex
|
enable_link_mutex
|
||||||
enable_version_specific_runtime_libs
|
enable_version_specific_runtime_libs
|
||||||
enable_plugin
|
enable_plugin
|
||||||
|
enable_host_shared
|
||||||
enable_libquadmath_support
|
enable_libquadmath_support
|
||||||
with_linker_hash_style
|
with_linker_hash_style
|
||||||
'
|
'
|
||||||
|
|
@ -1636,6 +1639,7 @@ Optional Features:
|
||||||
specify that runtime libraries should be installed
|
specify that runtime libraries should be installed
|
||||||
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
|
||||||
--disable-libquadmath-support
|
--disable-libquadmath-support
|
||||||
disable libquadmath support for Fortran
|
disable libquadmath support for Fortran
|
||||||
|
|
||||||
|
|
@ -17893,7 +17897,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 17896 "configure"
|
#line 17900 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
||||||
|
|
@ -17999,7 +18003,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 18002 "configure"
|
#line 18006 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
||||||
|
|
@ -27700,6 +27704,18 @@ $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Enable --enable-host-shared
|
||||||
|
# Check whether --enable-host-shared was given.
|
||||||
|
if test "${enable_host_shared+set}" = set; then :
|
||||||
|
enableval=$enable_host_shared; PICFLAG=-fPIC
|
||||||
|
else
|
||||||
|
PICFLAG=
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Check whether --enable-libquadmath-support was given.
|
# Check whether --enable-libquadmath-support was given.
|
||||||
if test "${enable_libquadmath_support+set}" = set; then :
|
if test "${enable_libquadmath_support+set}" = set; then :
|
||||||
enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
|
enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
|
||||||
|
|
|
||||||
|
|
@ -5399,6 +5399,15 @@ if test x"$enable_plugin" = x"yes"; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Enable --enable-host-shared
|
||||||
|
AC_ARG_ENABLE(host-shared,
|
||||||
|
[AS_HELP_STRING([--enable-host-shared],
|
||||||
|
[build host code as shared libraries])],
|
||||||
|
[PICFLAG=-fPIC], [PICFLAG=])
|
||||||
|
AC_SUBST(enable_host_shared)
|
||||||
|
AC_SUBST(PICFLAG)
|
||||||
|
|
||||||
|
|
||||||
AC_ARG_ENABLE(libquadmath-support,
|
AC_ARG_ENABLE(libquadmath-support,
|
||||||
[AS_HELP_STRING([--disable-libquadmath-support],
|
[AS_HELP_STRING([--disable-libquadmath-support],
|
||||||
[disable libquadmath support for Fortran])],
|
[disable libquadmath support for Fortran])],
|
||||||
|
|
|
||||||
|
|
@ -925,6 +925,19 @@ Use @option{--disable-shared} to build only static libraries. Note that
|
||||||
@option{--disable-shared} does not accept a list of package names as
|
@option{--disable-shared} does not accept a list of package names as
|
||||||
argument, only @option{--enable-shared} does.
|
argument, only @option{--enable-shared} does.
|
||||||
|
|
||||||
|
Contrast with @option{--enable-host-shared}, which affects @emph{host}
|
||||||
|
code.
|
||||||
|
|
||||||
|
@item --enable-host-shared
|
||||||
|
Specify that the @emph{host} code should be built into position-independent
|
||||||
|
machine code (with -fPIC), allowing it to be used within shared libraries,
|
||||||
|
but yielding a slightly slower compiler.
|
||||||
|
|
||||||
|
Currently this option is only of use to people developing GCC itself.
|
||||||
|
|
||||||
|
Contrast with @option{--enable-shared}, which affects @emph{target}
|
||||||
|
libraries.
|
||||||
|
|
||||||
@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
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
2013-10-15 David Malcolm <dmalcolm@redhat.com>
|
||||||
|
|
||||||
|
* configure.ac: Add --enable-host-shared, setting up
|
||||||
|
pre-existing PIC_FLAG variable within Makefile.am et al.
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
2013-09-20 Alan Modra <amodra@gmail.com>
|
2013-09-20 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* configure: Regenerate.
|
* configure: Regenerate.
|
||||||
|
|
|
||||||
|
|
@ -731,6 +731,7 @@ with_gnu_ld
|
||||||
enable_libtool_lock
|
enable_libtool_lock
|
||||||
enable_multilib
|
enable_multilib
|
||||||
with_system_libunwind
|
with_system_libunwind
|
||||||
|
enable_host_shared
|
||||||
'
|
'
|
||||||
ac_precious_vars='build_alias
|
ac_precious_vars='build_alias
|
||||||
host_alias
|
host_alias
|
||||||
|
|
@ -1369,6 +1370,7 @@ 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-multilib build many library versions (default)
|
--enable-multilib build many library versions (default)
|
||||||
|
--enable-host-shared build host code as shared libraries
|
||||||
|
|
||||||
Optional Packages:
|
Optional Packages:
|
||||||
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
||||||
|
|
@ -11087,7 +11089,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 11090 "configure"
|
#line 11092 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
||||||
|
|
@ -11193,7 +11195,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 11196 "configure"
|
#line 11198 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
||||||
|
|
@ -11696,6 +11698,12 @@ PIC_FLAG=
|
||||||
if test -n "${with_target_subdir}"; then
|
if test -n "${with_target_subdir}"; then
|
||||||
PIC_FLAG=-fPIC
|
PIC_FLAG=-fPIC
|
||||||
fi
|
fi
|
||||||
|
# Similarly, use -fPIC with --enable-host-shared:
|
||||||
|
# Check whether --enable-host-shared was given.
|
||||||
|
if test "${enable_host_shared+set}" = set; then :
|
||||||
|
enableval=$enable_host_shared; PIC_FLAG=-fPIC
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Test for __sync support.
|
# Test for __sync support.
|
||||||
|
|
|
||||||
|
|
@ -165,6 +165,11 @@ PIC_FLAG=
|
||||||
if test -n "${with_target_subdir}"; then
|
if test -n "${with_target_subdir}"; then
|
||||||
PIC_FLAG=-fPIC
|
PIC_FLAG=-fPIC
|
||||||
fi
|
fi
|
||||||
|
# Similarly, use -fPIC with --enable-host-shared:
|
||||||
|
AC_ARG_ENABLE(host-shared,
|
||||||
|
[AS_HELP_STRING([--enable-host-shared],
|
||||||
|
[build host code as shared libraries])],
|
||||||
|
[PIC_FLAG=-fPIC], [])
|
||||||
AC_SUBST(PIC_FLAG)
|
AC_SUBST(PIC_FLAG)
|
||||||
|
|
||||||
# Test for __sync support.
|
# Test for __sync support.
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,12 @@
|
||||||
|
2013-10-15 David Malcolm <dmalcolm@redhat.com>
|
||||||
|
|
||||||
|
* Makefile.in (PICFLAG): New.
|
||||||
|
(ALL_CFLAGS): Add PICFLAG.
|
||||||
|
(ALL_CXXFLAGS): Likewise.
|
||||||
|
* configure.ac: Add --enable-host-shared, setting up new
|
||||||
|
PICFLAG variable.
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
2013-08-07 Richard Earnshaw <rearnsha@arm.com>
|
2013-08-07 Richard Earnshaw <rearnsha@arm.com>
|
||||||
|
|
||||||
* configure.ac: Set need_64bit_hwint for all arm targets.
|
* configure.ac: Set need_64bit_hwint for all arm targets.
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,7 @@ CCDEPMODE = @CCDEPMODE@
|
||||||
CXXDEPMODE = @CXXDEPMODE@
|
CXXDEPMODE = @CXXDEPMODE@
|
||||||
DEPDIR = @DEPDIR@
|
DEPDIR = @DEPDIR@
|
||||||
NOEXCEPTION_FLAGS = @noexception_flags@
|
NOEXCEPTION_FLAGS = @noexception_flags@
|
||||||
|
PICFLAG = @PICFLAG@
|
||||||
|
|
||||||
datarootdir = @datarootdir@
|
datarootdir = @datarootdir@
|
||||||
datadir = @datadir@
|
datadir = @datadir@
|
||||||
|
|
@ -72,9 +73,9 @@ depcomp = $(SHELL) $(srcdir)/../depcomp
|
||||||
INCLUDES = -I$(srcdir) -I. -I$(srcdir)/../include @INCINTL@ \
|
INCLUDES = -I$(srcdir) -I. -I$(srcdir)/../include @INCINTL@ \
|
||||||
-I$(srcdir)/include
|
-I$(srcdir)/include
|
||||||
|
|
||||||
ALL_CFLAGS = $(CFLAGS) $(WARN_CFLAGS) $(INCLUDES) $(CPPFLAGS)
|
ALL_CFLAGS = $(CFLAGS) $(WARN_CFLAGS) $(INCLUDES) $(CPPFLAGS) $(PICFLAG)
|
||||||
ALL_CXXFLAGS = $(CXXFLAGS) $(WARN_CXXFLAGS) $(NOEXCEPTION_FLAGS) $(INCLUDES) \
|
ALL_CXXFLAGS = $(CXXFLAGS) $(WARN_CXXFLAGS) $(NOEXCEPTION_FLAGS) $(INCLUDES) \
|
||||||
$(CPPFLAGS)
|
$(CPPFLAGS) $(PICFLAG)
|
||||||
|
|
||||||
# The name of the compiler to use.
|
# The name of the compiler to use.
|
||||||
COMPILER = $(CXX)
|
COMPILER = $(CXX)
|
||||||
|
|
|
||||||
|
|
@ -592,6 +592,7 @@ ac_includes_default="\
|
||||||
#endif"
|
#endif"
|
||||||
|
|
||||||
ac_subst_vars='LTLIBOBJS
|
ac_subst_vars='LTLIBOBJS
|
||||||
|
PICFLAG
|
||||||
MAINT
|
MAINT
|
||||||
USED_CATALOGS
|
USED_CATALOGS
|
||||||
PACKAGE
|
PACKAGE
|
||||||
|
|
@ -701,6 +702,7 @@ with_libiconv_prefix
|
||||||
enable_maintainer_mode
|
enable_maintainer_mode
|
||||||
enable_checking
|
enable_checking
|
||||||
enable_canonical_system_headers
|
enable_canonical_system_headers
|
||||||
|
enable_host_shared
|
||||||
'
|
'
|
||||||
ac_precious_vars='build_alias
|
ac_precious_vars='build_alias
|
||||||
host_alias
|
host_alias
|
||||||
|
|
@ -1340,6 +1342,7 @@ Optional Features:
|
||||||
other strings
|
other strings
|
||||||
--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
|
||||||
|
|
||||||
Optional Packages:
|
Optional Packages:
|
||||||
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
||||||
|
|
@ -7204,6 +7207,16 @@ fi
|
||||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Enable --enable-host-shared.
|
||||||
|
# Check whether --enable-host-shared was given.
|
||||||
|
if test "${enable_host_shared+set}" = set; then :
|
||||||
|
enableval=$enable_host_shared; PICFLAG=-fPIC
|
||||||
|
else
|
||||||
|
PICFLAG=
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Output.
|
# Output.
|
||||||
|
|
||||||
ac_config_headers="$ac_config_headers config.h:config.in"
|
ac_config_headers="$ac_config_headers config.h:config.in"
|
||||||
|
|
|
||||||
|
|
@ -220,6 +220,13 @@ case $target in
|
||||||
[Define to 1 if you can assemble SSE4 insns.])])
|
[Define to 1 if you can assemble SSE4 insns.])])
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Enable --enable-host-shared.
|
||||||
|
AC_ARG_ENABLE(host-shared,
|
||||||
|
[AS_HELP_STRING([--enable-host-shared],
|
||||||
|
[build host code as shared libraries])],
|
||||||
|
[PICFLAG=-fPIC], [PICFLAG=])
|
||||||
|
AC_SUBST(PICFLAG)
|
||||||
|
|
||||||
# Output.
|
# Output.
|
||||||
|
|
||||||
AC_CONFIG_HEADERS(config.h:config.in, [echo timestamp > stamp-h1])
|
AC_CONFIG_HEADERS(config.h:config.in, [echo timestamp > stamp-h1])
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,11 @@
|
||||||
|
2013-10-15 David Malcolm <dmalcolm@redhat.com>
|
||||||
|
|
||||||
|
* Makefile.in (PICFLAG): New.
|
||||||
|
(ALL_CFLAGS): Add PICFLAG.
|
||||||
|
* configure.ac: Add --enable-host-shared, setting up new
|
||||||
|
PICFLAG variable.
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
2013-07-09 Simon Baldwin <simonb@google.com>
|
2013-07-09 Simon Baldwin <simonb@google.com>
|
||||||
|
|
||||||
* configure.ac: Add AC_CONFIG_AUX_DIR.
|
* configure.ac: Add AC_CONFIG_AUX_DIR.
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||||
LDFLAGS = @LDFLAGS@
|
LDFLAGS = @LDFLAGS@
|
||||||
LIBICONV = @LIBICONV@
|
LIBICONV = @LIBICONV@
|
||||||
PACKAGE = @PACKAGE@
|
PACKAGE = @PACKAGE@
|
||||||
|
PICFLAG = @PICFLAG@
|
||||||
RANLIB = @RANLIB@
|
RANLIB = @RANLIB@
|
||||||
SHELL = @SHELL@
|
SHELL = @SHELL@
|
||||||
objext = @OBJEXT@
|
objext = @OBJEXT@
|
||||||
|
|
@ -57,7 +58,7 @@ enable_decimal_float= @enable_decimal_float@
|
||||||
|
|
||||||
INCLUDES = -I$(srcdir) -I.
|
INCLUDES = -I$(srcdir) -I.
|
||||||
|
|
||||||
ALL_CFLAGS = $(CFLAGS) $(WARN_CFLAGS) $(INCLUDES) $(CPPFLAGS)
|
ALL_CFLAGS = $(CFLAGS) $(WARN_CFLAGS) $(INCLUDES) $(CPPFLAGS) $(PICFLAG)
|
||||||
|
|
||||||
bid_OBJS = bid2dpd_dpd2bid.$(objext) host-ieee32.$(objext) \
|
bid_OBJS = bid2dpd_dpd2bid.$(objext) host-ieee32.$(objext) \
|
||||||
host-ieee64.$(objext) host-ieee128.$(objext)
|
host-ieee64.$(objext) host-ieee128.$(objext)
|
||||||
|
|
|
||||||
|
|
@ -593,6 +593,7 @@ ac_includes_default="\
|
||||||
|
|
||||||
ac_subst_vars='LTLIBOBJS
|
ac_subst_vars='LTLIBOBJS
|
||||||
LIBOBJS
|
LIBOBJS
|
||||||
|
PICFLAG
|
||||||
ADDITIONAL_OBJS
|
ADDITIONAL_OBJS
|
||||||
enable_decimal_float
|
enable_decimal_float
|
||||||
target_os
|
target_os
|
||||||
|
|
@ -670,6 +671,7 @@ enable_option_checking
|
||||||
enable_werror_always
|
enable_werror_always
|
||||||
enable_maintainer_mode
|
enable_maintainer_mode
|
||||||
enable_decimal_float
|
enable_decimal_float
|
||||||
|
enable_host_shared
|
||||||
'
|
'
|
||||||
ac_precious_vars='build_alias
|
ac_precious_vars='build_alias
|
||||||
host_alias
|
host_alias
|
||||||
|
|
@ -1301,6 +1303,7 @@ Optional Features:
|
||||||
enable decimal float extension to C. Selecting 'bid'
|
enable decimal float extension to C. Selecting 'bid'
|
||||||
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
|
||||||
|
|
||||||
Some influential environment variables:
|
Some influential environment variables:
|
||||||
CC C compiler command
|
CC C compiler command
|
||||||
|
|
@ -4889,6 +4892,16 @@ $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
# Enable --enable-host-shared.
|
||||||
|
# Check whether --enable-host-shared was given.
|
||||||
|
if test "${enable_host_shared+set}" = set; then :
|
||||||
|
enableval=$enable_host_shared; PICFLAG=-fPIC
|
||||||
|
else
|
||||||
|
PICFLAG=
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Output.
|
# Output.
|
||||||
|
|
||||||
ac_config_headers="$ac_config_headers config.h:config.in"
|
ac_config_headers="$ac_config_headers config.h:config.in"
|
||||||
|
|
|
||||||
|
|
@ -95,6 +95,13 @@ AC_SUBST(ADDITIONAL_OBJS)
|
||||||
|
|
||||||
AC_C_BIGENDIAN
|
AC_C_BIGENDIAN
|
||||||
|
|
||||||
|
# Enable --enable-host-shared.
|
||||||
|
AC_ARG_ENABLE(host-shared,
|
||||||
|
[AS_HELP_STRING([--enable-host-shared],
|
||||||
|
[build host code as shared libraries])],
|
||||||
|
[PICFLAG=-fPIC], [PICFLAG=])
|
||||||
|
AC_SUBST(PICFLAG)
|
||||||
|
|
||||||
# Output.
|
# Output.
|
||||||
|
|
||||||
AC_CONFIG_HEADERS(config.h:config.in, [echo timestamp > stamp-h1])
|
AC_CONFIG_HEADERS(config.h:config.in, [echo timestamp > stamp-h1])
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
|
2013-10-15 David Malcolm <dmalcolm@redhat.com>
|
||||||
|
|
||||||
|
* configure.ac: If --enable-host-shared, use -fPIC.
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
2013-10-11 Paul Pluzhnikov <ppluzhnikov@google.com>
|
2013-10-11 Paul Pluzhnikov <ppluzhnikov@google.com>
|
||||||
|
|
||||||
* cp-demangle.c (d_name): Demangle local-source-names.
|
* cp-demangle.c (d_name): Demangle local-source-names.
|
||||||
|
|
|
||||||
|
|
@ -4963,6 +4963,12 @@ case "${enable_shared}" in
|
||||||
"") shared=no ;;
|
"") shared=no ;;
|
||||||
*) shared=yes ;;
|
*) shared=yes ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# ...unless --enable-host-shared was passed from top-level config:
|
||||||
|
if [ "${enable_host_shared}" = "yes" ]; then
|
||||||
|
shared=yes
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "${shared}" != "yes" ]; then
|
if [ "${shared}" != "yes" ]; then
|
||||||
PICFLAG=
|
PICFLAG=
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -225,6 +225,12 @@ case "${enable_shared}" in
|
||||||
"") shared=no ;;
|
"") shared=no ;;
|
||||||
*) shared=yes ;;
|
*) shared=yes ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# ...unless --enable-host-shared was passed from top-level config:
|
||||||
|
if [[ "${enable_host_shared}" = "yes" ]]; then
|
||||||
|
shared=yes
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "${shared}" != "yes" ]]; then
|
if [[ "${shared}" != "yes" ]]; then
|
||||||
PICFLAG=
|
PICFLAG=
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,11 @@
|
||||||
|
2013-10-15 David Malcolm <dmalcolm@redhat.com>
|
||||||
|
|
||||||
|
* configure.ac: Add --enable-host-shared, setting up new
|
||||||
|
PICFLAG variable.
|
||||||
|
* Makefile.am: Add PICFLAG to libz_a_CFLAGS.
|
||||||
|
* Makefile.in: Regenerate.
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
2013-09-20 Alan Modra <amodra@gmail.com>
|
2013-09-20 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* configure: Regenerate.
|
* configure: Regenerate.
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ libzgcj_convenience_la_SOURCES = $(ZLIB_SOURCES)
|
||||||
else
|
else
|
||||||
toolexeclib_LIBRARIES = libz.a
|
toolexeclib_LIBRARIES = libz.a
|
||||||
libz_a_SOURCES = $(ZLIB_SOURCES)
|
libz_a_SOURCES = $(ZLIB_SOURCES)
|
||||||
libz_a_CFLAGS = $(AM_CFLAGS)
|
libz_a_CFLAGS = $(AM_CFLAGS) $(PICFLAG)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Work around what appears to be a GNU make bug handling MAKEFLAGS
|
# Work around what appears to be a GNU make bug handling MAKEFLAGS
|
||||||
|
|
|
||||||
|
|
@ -177,6 +177,7 @@ PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||||
PACKAGE_URL = @PACKAGE_URL@
|
PACKAGE_URL = @PACKAGE_URL@
|
||||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||||
|
PICFLAG = @PICFLAG@
|
||||||
RANLIB = @RANLIB@
|
RANLIB = @RANLIB@
|
||||||
SED = @SED@
|
SED = @SED@
|
||||||
SET_MAKE = @SET_MAKE@
|
SET_MAKE = @SET_MAKE@
|
||||||
|
|
@ -255,7 +256,7 @@ zconf.h.in zlib.h zutil.c zutil.h
|
||||||
@TARGET_LIBRARY_TRUE@libzgcj_convenience_la_SOURCES = $(ZLIB_SOURCES)
|
@TARGET_LIBRARY_TRUE@libzgcj_convenience_la_SOURCES = $(ZLIB_SOURCES)
|
||||||
@TARGET_LIBRARY_FALSE@toolexeclib_LIBRARIES = libz.a
|
@TARGET_LIBRARY_FALSE@toolexeclib_LIBRARIES = libz.a
|
||||||
@TARGET_LIBRARY_FALSE@libz_a_SOURCES = $(ZLIB_SOURCES)
|
@TARGET_LIBRARY_FALSE@libz_a_SOURCES = $(ZLIB_SOURCES)
|
||||||
@TARGET_LIBRARY_FALSE@libz_a_CFLAGS = $(AM_CFLAGS)
|
@TARGET_LIBRARY_FALSE@libz_a_CFLAGS = $(AM_CFLAGS) $(PICFLAG)
|
||||||
|
|
||||||
# Work around what appears to be a GNU make bug handling MAKEFLAGS
|
# Work around what appears to be a GNU make bug handling MAKEFLAGS
|
||||||
# values defined in terms of make variables, as is the case for CC and
|
# values defined in terms of make variables, as is the case for CC and
|
||||||
|
|
|
||||||
|
|
@ -602,6 +602,7 @@ ac_subst_vars='am__EXEEXT_FALSE
|
||||||
am__EXEEXT_TRUE
|
am__EXEEXT_TRUE
|
||||||
LTLIBOBJS
|
LTLIBOBJS
|
||||||
LIBOBJS
|
LIBOBJS
|
||||||
|
PICFLAG
|
||||||
TARGET_LIBRARY_FALSE
|
TARGET_LIBRARY_FALSE
|
||||||
TARGET_LIBRARY_TRUE
|
TARGET_LIBRARY_TRUE
|
||||||
toolexeclibdir
|
toolexeclibdir
|
||||||
|
|
@ -736,6 +737,7 @@ with_pic
|
||||||
enable_fast_install
|
enable_fast_install
|
||||||
with_gnu_ld
|
with_gnu_ld
|
||||||
enable_libtool_lock
|
enable_libtool_lock
|
||||||
|
enable_host_shared
|
||||||
'
|
'
|
||||||
ac_precious_vars='build_alias
|
ac_precious_vars='build_alias
|
||||||
host_alias
|
host_alias
|
||||||
|
|
@ -1370,6 +1372,7 @@ Optional Features:
|
||||||
--enable-fast-install[=PKGS]
|
--enable-fast-install[=PKGS]
|
||||||
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
|
||||||
|
|
||||||
Optional Packages:
|
Optional Packages:
|
||||||
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
||||||
|
|
@ -10400,7 +10403,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 10403 "configure"
|
#line 10406 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
||||||
|
|
@ -10506,7 +10509,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 10509 "configure"
|
#line 10512 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
||||||
|
|
@ -11202,6 +11205,15 @@ else
|
||||||
multilib_arg=
|
multilib_arg=
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check whether --enable-host-shared was given.
|
||||||
|
if test "${enable_host_shared+set}" = set; then :
|
||||||
|
enableval=$enable_host_shared; PICFLAG=-fPIC
|
||||||
|
else
|
||||||
|
PICFLAG=
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ac_config_files="$ac_config_files Makefile"
|
ac_config_files="$ac_config_files Makefile"
|
||||||
|
|
||||||
cat >confcache <<\_ACEOF
|
cat >confcache <<\_ACEOF
|
||||||
|
|
|
||||||
|
|
@ -119,5 +119,11 @@ else
|
||||||
multilib_arg=
|
multilib_arg=
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(host-shared,
|
||||||
|
[AS_HELP_STRING([--enable-host-shared],
|
||||||
|
[build host code as shared libraries])],
|
||||||
|
[PICFLAG=-fPIC], [PICFLAG=])
|
||||||
|
AC_SUBST(PICFLAG)
|
||||||
|
|
||||||
AC_CONFIG_FILES([Makefile])
|
AC_CONFIG_FILES([Makefile])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue