Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 414335 - ld Prefix rpath gets overridden when ROOT is set to non-"/" as environment
Summary: ld Prefix rpath gets overridden when ROOT is set to non-"/" as environment
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 414359
  Show dependency tree
 
Reported: 2012-05-02 07:10 UTC by Benda Xu
Modified: 2017-11-15 17:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benda Xu gentoo-dev 2012-05-02 07:10:57 UTC
The behavior affects ssldump, which defines ROOT=./ in its Makefile

Reproducible: Always

Steps to Reproduce:
1. ROOT=/tmp ld -o ssldump /usr/lib/crt1.o /usr/lib/crti.o /work/benda/gentoo/usr/lib/gcc/i686-pc-linux-gnu/4.5.3/crtbegin.o -L/work/benda/gentoo/usr/lib -L/work/benda/gentoo/usr/lib -L/work/benda/gentoo/usr/lib/gcc/i686-pc-linux-gnu/4.5.3 debug.o r_assoc.o r_bitfield.o r_data.o r_errors.o r_list.o r_replace.o r_time.o network.o pcap-snoop.o proto_mod.o tcpconn.o tcppack.o null_analyze.o ciphersuites.o ssl.enums.o ssl_analyze.o ssl_rec.o ssldecode.o sslprint.o sslxprint.o -O1 -lssl -lcrypto -lpcap -lm -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /work/benda/gentoo/usr/lib/gcc/i686-pc-linux-gnu/4.5.3/crtend.o /usr/lib/crtn.o && readelf -d ssldump | grep RPATH
 0x0000000f (RPATH)                      Library rpath: [/work/benda/gentoo/usr/i686-pc-linux-gnu/lib/gcc:/work/benda/gentoo/usr/i686-pc-linux-gnu/lib]

2. ld -o ssldump /usr/lib/crt1.o /usr/lib/crti.o /work/benda/gentoo/usr/lib/gcc/i686-pc-linux-gnu/4.5.3/crtbegin.o -L/work/benda/gentoo/usr/lib -L/work/benda/gentoo/usr/lib -L/work/benda/gentoo/usr/lib/gcc/i686-pc-linux-gnu/4.5.3 debug.o r_assoc.o r_bitfield.o r_data.o r_errors.o r_list.o r_replace.o r_time.o network.o pcap-snoop.o proto_mod.o tcpconn.o tcppack.o null_analyze.o ciphersuites.o ssl.enums.o ssl_analyze.o ssl_rec.o ssldecode.o sslprint.o sslxprint.o -O1 -lssl -lcrypto -lpcap -lm -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /work/benda/gentoo/usr/lib/gcc/i686-pc-linux-gnu/4.5.3/crtend.o /usr/lib/crtn.o && readelf -d ssldump | grep RPATH
 0x0000000f (RPATH)                      Library rpath: [/work/benda/gentoo/usr/i686-pc-linux-gnu/lib/gcc:/work/benda/gentoo/usr/i686-pc-linux-gnu/lib:/work/benda/gentoo/lib:/work/benda/gentoo/usr/lib]
Comment 1 Fabian Groffen gentoo-dev 2017-11-15 17:38:29 UTC
This apparently never hit anything but this, I'm closing this as we would have to revisit it.