Introduce --enable-new-dtags configure option.
authorSlava Barinov <v.barinov@samsung.com>
Thu, 25 May 2017 08:10:06 +0000 (11:10 +0300)
committerDongkyun Son <dongkyun.s@samsung.com>
Wed, 3 May 2023 09:43:15 +0000 (18:43 +0900)
ld/configure --enable-new-dtags sets ld.bfd --enable-new-dtags option by
default.

The ld option switches on generation of DT_RUNPATH tag instead of DT_RPATH tag
which is deprecated and breaks LD_LIBRARY_PATH usage.

Debian binutils bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=835859

        * ld/configure.ac: Add --enable-new-dtags option.
        * ld/ldmain.c: Set link_info.new_dtags to 1 if when --enable-new-dtags is
          switched on.
        * ld/configure: Regenerate.
        * ld/config.in: Regenerate.
        * packaging/binutils.spec: Switch on --enable-new-dtags.
        * packaging/binutils-armv7l.spec: Regenerate.
        * packaging/binutils-aarch64.spec: Regenerate.

Change-Id: I0ec86f61a8b97d55c29bb441a9ae4db94060ea22
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
packaging/binutils-aarch64.spec
packaging/binutils-armv7l.spec
packaging/binutils.spec

index 56dce89..ea628b8 100644 (file)
@@ -100,7 +100,8 @@ cd build-dir
 } \
        --enable-plugins \
        --enable-gold \
-       --enable-shared
+       --enable-shared \
+       --enable-new-dtags
 
 make %{?_smp_mflags}
 
index 4f94202..6ef2038 100644 (file)
@@ -100,7 +100,8 @@ cd build-dir
 } \
        --enable-plugins \
        --enable-gold \
-       --enable-shared
+       --enable-shared \
+       --enable-new-dtags
 
 make %{?_smp_mflags}
 
index cb05a89..b6826cc 100644 (file)
@@ -97,7 +97,8 @@ cd build-dir
 } \
        --enable-plugins \
        --enable-gold \
-       --enable-shared
+       --enable-shared \
+       --enable-new-dtags
 
 make %{?_smp_mflags}