mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-18 19:29:21 +01:00
binutils: Add --enable-new-dtags
This option makes ld use DT_RUNPATH instead of DT_RPATH. DT_RPATH is generally considered bad because it takes precedence over LD_LIBRARY_PATH. For example, eog is linked with -rpath /usr/lib/eog, and with DT_RPATH if an old eog is already installed we are basically impossible to debug a new eog build w/o overwriting the system installation first or explicitly using "ld.so --inhibit-rpath" to invoke it. This "new" actually means "new in 2000," it's 24 years ago and all other distros has enabled it. Thus I guess some unexplainable "test suite uses installed library instead of the just built one" issues in BLFS are actually caused by this difference: the package author just assumes everyone is using DT_RUNPATH thus they just set LD_LIBRARY_PATH and consider it enough to test with the just built libraries, but DT_RPATH breaks this expectation. Let's eliminate the difference as it seems not doing anything good and doing so just takes one switch.
This commit is contained in:
parent
f105449724
commit
6e6641f9b7
@ -76,6 +76,7 @@ cd build</userinput></screen>
|
||||
--disable-nls \
|
||||
--enable-gprofng=no \
|
||||
--disable-werror \
|
||||
--enable-new-dtags \
|
||||
--enable-default-hash-style=gnu</userinput></screen>
|
||||
|
||||
<variablelist>
|
||||
@ -133,6 +134,17 @@ cd build</userinput></screen>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><parameter>--enable-new-dtags</parameter></term>
|
||||
<listitem>
|
||||
<para>This makes the linker use the <quote>runpath</quote> tag for
|
||||
embedding library search paths into executables and shared libraries,
|
||||
instead of the traditional <quote>rpath</quote> tag. It makes
|
||||
debugging dynamically linked executables easier and works around
|
||||
potential issues in the test suite of some packages.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><parameter>--enable-default-hash-style=gnu</parameter></term>
|
||||
<listitem>
|
||||
|
@ -73,6 +73,7 @@ cd build</userinput></screen>
|
||||
--enable-gprofng=no \
|
||||
--disable-werror \
|
||||
--enable-64-bit-bfd \
|
||||
--enable-new-dtags \
|
||||
--enable-default-hash-style=gnu</userinput></screen>
|
||||
|
||||
<variablelist>
|
||||
|
@ -57,6 +57,7 @@ cd build</userinput></screen>
|
||||
--enable-shared \
|
||||
--disable-werror \
|
||||
--enable-64-bit-bfd \
|
||||
--enable-new-dtags \
|
||||
--with-system-zlib \
|
||||
--enable-default-hash-style=gnu</userinput></screen>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user