aboutsummaryrefslogtreecommitdiff
path: root/ld/configure
diff options
context:
space:
mode:
authorSlava Barinov <v.barinov@samsung.com>2017-06-05 09:27:38 +0930
committerAlan Modra <amodra@gmail.com>2017-06-05 09:58:05 +0930
commit6734f10ae9af6cfd47e70baa2cd3e326afabe5ed (patch)
treeafa7629a0be2b40664ddffb5550cf929a24c0995 /ld/configure
parent3ea0007c8ca3ec851df6ab5391a98467b4021f92 (diff)
downloadgdb-6734f10ae9af6cfd47e70baa2cd3e326afabe5ed.zip
gdb-6734f10ae9af6cfd47e70baa2cd3e326afabe5ed.tar.gz
gdb-6734f10ae9af6cfd47e70baa2cd3e326afabe5ed.tar.bz2
Introduce --enable-new-dtags configure option.
This option switches on ld.bfd --enable-new-dtags by default. * configure.ac: Add --enable-new-dtags option. * ldmain.c: Set link_info.new_dtags to 1 if when --enable-new-dtags is switched on. * configure: Regenerate. * config.in: Regenerate.
Diffstat (limited to 'ld/configure')
-rwxr-xr-xld/configure26
1 files changed, 24 insertions, 2 deletions
diff --git a/ld/configure b/ld/configure
index dd94301..919fbc2 100755
--- a/ld/configure
+++ b/ld/configure
@@ -788,6 +788,7 @@ with_sysroot
enable_gold
enable_got
enable_compressed_debug_sections
+enable_new_dtags
enable_relro
enable_werror
enable_build_warnings
@@ -1447,6 +1448,7 @@ Optional Features:
multigot)
--enable-compressed-debug-sections={all,ld,none}
compress debug sections by default]
+ --enable-new-dtags set DT_RUNPATH instead of DT_RPATH by default]
--enable-relro enable -z relro in ELF linker by default
--enable-werror treat compile warnings as errors
--enable-build-warnings enable build-time compiler warnings
@@ -11720,7 +11722,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11723 "configure"
+#line 11725 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11826,7 +11828,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11829 "configure"
+#line 11831 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -15540,6 +15542,17 @@ if test "${enable_compressed_debug_sections+set}" = set; then :
esac
fi
+# Decide setting DT_RUNPATH instead of DT_RPATH by default
+ac_default_new_dtags=unset
+# Provide a configure time option to override our default.
+# Check whether --enable-new_dtags was given.
+if test "${enable_new_dtags+set}" = set; then :
+ enableval=$enable_new_dtags; case "${enableval}" in
+ yes) ac_default_new_dtags=1 ;;
+ no) ac_default_new_dtags=0 ;;
+esac
+fi
+
# Decide if -z relro should be enabled in ELF linker by default.
ac_default_ld_z_relro=unset
# Provide a configure time option to override our default.
@@ -17196,6 +17209,15 @@ $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
fi
+if test "${ac_default_new_dtags}" = unset; then
+ ac_default_new_dtags=0
+fi
+
+cat >>confdefs.h <<_ACEOF
+#define DEFAULT_NEW_DTAGS $ac_default_new_dtags
+_ACEOF
+
+
if test "${ac_default_ld_z_relro}" = unset; then
ac_default_ld_z_relro=0
fi