aboutsummaryrefslogtreecommitdiff
path: root/gold/configure
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2011-09-23 15:02:32 +0000
committerIan Lance Taylor <ian@airs.com>2011-09-23 15:02:32 +0000
commitdc87f6201460bb5564a94d3c84beb4ab87a9962d (patch)
tree378d39c458b877fe9b42d8db349583a7bc0ad35a /gold/configure
parente04e5beb2e28eb2b84a2667f73908eb1ddc1111c (diff)
downloadgdb-dc87f6201460bb5564a94d3c84beb4ab87a9962d.zip
gdb-dc87f6201460bb5564a94d3c84beb4ab87a9962d.tar.gz
gdb-dc87f6201460bb5564a94d3c84beb4ab87a9962d.tar.bz2
* configure.ac: Add new --with-gold-ldadd and --with-gold-ldflags
configuration options. * configure: Regenerate. * Makefile.am: Handle GOLD_LDADD and GOLD_LDFLAGS. * Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate.
Diffstat (limited to 'gold/configure')
-rwxr-xr-xgold/configure34
1 files changed, 34 insertions, 0 deletions
diff --git a/gold/configure b/gold/configure
index e0a91f8..708f540 100755
--- a/gold/configure
+++ b/gold/configure
@@ -599,6 +599,8 @@ HAVE_ZLIB_FALSE
HAVE_ZLIB_TRUE
LIBOBJS
LFS_CFLAGS
+GOLD_LDADD
+GOLD_LDFLAGS
WARN_CXXFLAGS
NO_WERROR
WARN_CFLAGS
@@ -777,6 +779,8 @@ enable_dependency_tracking
enable_nls
enable_werror
enable_build_warnings
+with_gold_ldflags
+with_gold_ldadd
enable_maintainer_mode
'
ac_precious_vars='build_alias
@@ -1431,6 +1435,8 @@ Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-sysroot=DIR search for usr/lib et al within DIR
+ --with-gold-ldflags=FLAGS additional link flags for gold
+ --with-gold-ldadd=LIBS additional libraries for gold
Some influential environment variables:
CC C compiler command
@@ -6619,6 +6625,34 @@ fi
WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'`
+
+# Check whether --with-gold-ldflags was given.
+if test "${with_gold_ldflags+set}" = set; then :
+ withval=$with_gold_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
+ GOLD_LDFLAGS=
+ else
+ GOLD_LDFLAGS=$withval
+ fi
+else
+ GOLD_LDFLAGS=
+fi
+
+
+
+
+# Check whether --with-gold-ldadd was given.
+if test "${with_gold_ldadd+set}" = set; then :
+ withval=$with_gold_ldadd; if test "$withval" = "no" -o "$withval" = "yes"; then
+ GOLD_LDADD=
+ else
+ GOLD_LDADD=$withval
+ fi
+else
+ GOLD_LDADD=
+fi
+
+
+
LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"