redoconf: move -Wl,-rpath flags to shlib.rc and add -Wl,-z,origin.
It was kind of ugly to have this kind of special flag directly in link.od; now we detect whether it's available. This also gives a project the ability to override the flag in some other way if they want. As a result, rc/shlib.rc needs to be included in all.rc.od if you want to create or link against shared libraries. While we're here, also add -Wl,-z,origin on platforms where it works. This is apparently needed for FreeBSD 8.0 at least, and probably other platforms. Reported-by: Wayne Scott <wsc9tt@gmail.com>
This commit is contained in:
parent
1eb7b2879d
commit
88250334da
4 changed files with 24 additions and 6 deletions
|
|
@ -13,7 +13,6 @@ cat >$3 <<-EOF
|
|||
IFS="$NL"
|
||||
set -f
|
||||
\$LINK -o "\$o" \\
|
||||
-Wl,-rpath,'\$ORIGIN' \\
|
||||
\$LDFLAGS \$OPTFLAGS \\
|
||||
"\$@" \\
|
||||
\$LIBS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue