forked from TritonDataCenter/illumos-extra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgit_source
23 lines (18 loc) · 1.04 KB
/
git_source
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
git://github.com/joyent/gcc
branch il-4_4_4
HEAD:
commit 43d517ea3eb78c23ace5f3e6e579fb29d28f71ba
Author: Richard Lowe <[email protected]>
Date: Wed Dec 14 02:32:14 2011 +0000
config: Do not force runpath entries unless necessary
Sun patched their GCC3 to force /lib:/usr/lib:/usr/sfw/lib into the runpath, in
that order, such that /usr/sfw libraries did not take precedence over system
libraries, but nevertheless libgcc did not need a specific -R entry to be added
to the command line when building.
This has caused us nothing but trouble when patching it forward, since suddenly
we need our _own_ prefix in thre too, and it must beat /usr/sfw, and because
it's using -R it means that LD_RUN_PATH doesn't function, and because it's
unexpected it causes confusion for 3rd party software.
This change only uses -R to force the runpath in the BSD compat environment, as
GCC upstream does, leaving the sole artifact of Sun's change being the addition
of /lib to the default library search path. (-YP)