From cbe7ea070802720a97deced1094beb6f06649a70 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Wed, 22 Sep 2010 13:03:34 -0400 Subject: [PATCH] releng: rough-in support for linking with GOLD --- configure | 4 ++++ configure.ac | 15 +++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/configure b/configure index 9deb35315..1536963f2 100755 --- a/configure +++ b/configure @@ -5680,6 +5680,9 @@ fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi + + + # Compiling without fPIE by default (see PR 9922) # Check whether --enable-pie was given. if test "${enable_pie+set}" = set; then : @@ -7365,6 +7368,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: stap will link $stap_LIBS" >&5 $as_echo "$as_me: stap will link $stap_LIBS" >&6;} + date=`date +%Y-%m-%d` cat >>confdefs.h <<_ACEOF diff --git a/configure.ac b/configure.ac index eb4593a5a..4b88cfd09 100644 --- a/configure.ac +++ b/configure.ac @@ -65,6 +65,20 @@ AS_IF([test "x$enable_ssp" != xno],[ CFLAGS="$save_CFLAGS" CXXFLAGS="$save_CXXFLAGS"])]) + +dnl Link with gold if possible +dnl but: https://bugzilla.redhat.com/show_bug.cgi?id=636603 +dnl +dnl AC_PATH_PROG(GOLD, [ld.gold], [no]) +dnl if test "x$GOLD" != "xno" +dnl then +dnl mkdir -p Bdir +dnl ln -sf $GOLD Bdir/ld +dnl LDFLAGS="$LDFLAGS -B`pwd`/Bdir/" +dnl AC_MSG_NOTICE([using ld.gold to link]) +dnl fi + + # Compiling without fPIE by default (see PR 9922) AC_ARG_ENABLE([pie], [AS_HELP_STRING([--enable-pie], [enable position-independent-executable])]) @@ -437,6 +451,7 @@ fi AC_SUBST(stap_LIBS) AC_MSG_NOTICE([stap will link $stap_LIBS]) + dnl Plop in the build (configure) date date=`date +%Y-%m-%d` AC_DEFINE_UNQUOTED(DATE, "$date", [Configuration/build date]) -- 2.43.5