author | jurikm |
Sun, 12 Feb 2012 14:04:10 +0000 | |
changeset 8245 | 383896da4129 |
parent 3783 | 843c20204045 |
child 8578 | 8310a8093204 |
permissions | -rw-r--r-- |
3783
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
1 |
#THIS DOC IS EARLY DRAFT STATE AND MIGHT CONTAIN TYPOS, ERRORS, EAT YOUR CAT, ...# |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
2 |
|
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
3 |
Note: the order of %D and -R/path/to/lib does not change the order in |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
4 |
the resulting binary. E.g. you can't achive with -R/usr/g++/lib that |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
5 |
the resulting binary has a runpath like /usr/g++/lib, instead this |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
6 |
would be prevented by a hardcoded -R/usr/gnu/lib and result in |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
7 |
something like runpath /usr/gnu/lib:/usr/lib:/usr/g++/lib. |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
8 |
<to-be-verified-if-still-applies> If you always want the runtime |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
9 |
in front of the runpath/rpath, do make |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
10 |
sure to specify all libdirs *AND* put the runtime-LIB at the very |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
11 |
beginning yourself! </to-be-verified-if-still-applies> |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
12 |
|
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
13 |
Side-Note: No cross-compiling, it is disregarded in our case. It might |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
14 |
work if you set cross-compile switches, but you are on your own. |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
15 |
Same for relocating stuff after package install, some paths aren't |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
16 |
anymore prefixed by "R" which is used internally as kind of a macro |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
17 |
or variable. |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
18 |
|
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
19 |
Side-Note: We do this to have full control over what user-space |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
20 |
libdirs are in use. The order of specifying them is in some cases |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
21 |
very important because you might have to libs of the same name, |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
22 |
but you need them for instance compiled with the gnu C++ compiler |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
23 |
and those ones are stored currently in /usr/g++/lib . So you *need* |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
24 |
this directory searched *first* and then the other ones where the |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
25 |
ncompatible libraries are stored (compiled by e.g. Studio compiler, |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
26 |
and stored in the directory /usr/lib) |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
27 |
(Example: use QT g++ compiled lib that way: |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
28 |
-R/usr/gcc/lib:/usr/g++/lib ->> compiler runtime from /usr/gcc/lib |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
29 |
and g++ compiled application lib |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
30 |
from /usr/g++/lib ) |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
31 |
|
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
32 |
Side-Note: the path coded into the gcc internal setting "link_libgcc" |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
33 |
(where libgcc_s.so and libstdc++.so are searched) is currently ether |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
34 |
/usr/gcc/4.6/lib *or* /usr/gcc/lib (*or* optionally /usr/gnu/lib) |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
35 |
(the last maybe deprecated - it is reduces flexibility because you |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
36 |
might search for libgcc_s.so and automaticly include this directory |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
37 |
into searched for other libraries as well - this might be unwanted |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
38 |
to find those files!) |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
39 |
|
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
40 |
Side-Note: this patch enables a gcc or g++ compiled and linked program |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
41 |
to find libgcc_s.so.1 and libstdc++.so.6 themselves! |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
42 |
(example: g++ -o testbinary_finds_libstdc++ test.cpp # libstdc++.so.6 |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
43 |
lives in /usr/gcc/4.6/lib and is found there) |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
44 |
|
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
45 |
|
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
46 |
Usage-Tips: |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
47 |
============ |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
48 |
If you link with "ld", then specify -R/usr/gcc/4.6/lib:/usr/gnu/lib:/usr/lib |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
49 |
in that order is the compiler lib directory *first*, make sure that |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
50 |
at least the runtime is put first. |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
51 |
|
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
52 |
Choose one of of these methods to get runtime found in the right |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
53 |
place: (you want libgcc_so.1 be found, and really the file *you* |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
54 |
intended to be found :-) ) |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
55 |
(examples apply to libgcc_s.so.1 and libstdc++.so.6 as well as |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
56 |
other compiler runtime libs) |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
57 |
##TODO## add example where libgcc_s.so.1 appears to be loaded |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
58 |
# when debugged LD_DEBUG=libs ./testbin64_libgccrpath |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
59 |
|
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
60 |
Method 1) |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
61 |
specify *no* (*NO*!!!) -R to the gcc commandline if gcc should do |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
62 |
the linking. |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
63 |
/usr/gnu/bin/gcc -m64 -o testbin64_libgccrpath test.c |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
64 |
|
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
65 |
dump -Lv testbin64_libgccrpath | grep PATH |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
66 |
|
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
67 |
**** DYNAMIC SECTION INFORMATION **** |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
68 |
.dynamic: |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
69 |
[INDEX] Tag Value |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
70 |
[...] |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
71 |
[4] RUNPATH /usr/gcc/4.6/lib/amd64 |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
72 |
[5] RPATH /usr/gcc/4.6/lib/amd64 |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
73 |
(note: now clean! there is *no* pollution any more with /usr/gnu/lib) |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
74 |
(you can add one with -R if you need) |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
75 |
|
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
76 |
|
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
77 |
Background: the gcc internal setting named link_libgcc which is displayed |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
78 |
with gcc -dumpspecs does put the runpath/rpath displayed above |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
79 |
into all binaries you compile. Once you specify additional -R/path/to/libdir |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
80 |
then those extra runpaths are inserted at front of runpath/rpath. |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
81 |
(Don't poison your system with lingering around "libgcc_s.so.1" and |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
82 |
"libstdc++.so.6" without and reason) |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
83 |
|
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
84 |
*link_libgcc: |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
85 |
%{m64:-R /usr/gcc/4.6/lib/amd64:/usr/gcc/lib/amd64 %D}%{!m64:-R /usr/gcc/4.6/lib:/usr/gcc/lib %D} |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
86 |
|
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
87 |
|
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
88 |
--- OR --- |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
89 |
|
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
90 |
Method 2) |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
91 |
specify *all* library directories in the order you need them. Usually |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
92 |
you *want* the runtime found first like in this example: |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
93 |
/usr/gnu/bin/gcc -m64 -o testbin64_libgccrpath \ |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
94 |
-R/usr/gcc/4.6/lib/amd64:/usr/gnu/lib/amd64 \ |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
95 |
test.c |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
96 |
|
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
97 |
dump -Lv testbin64_libgccrpath | grep PATH |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
98 |
|
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
99 |
**** DYNAMIC SECTION INFORMATION **** |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
100 |
.dynamic: |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
101 |
[INDEX] Tag Value |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
102 |
[...] |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
103 |
[4] RUNPATH /usr/gcc/4.6/lib/amd64:/usr/gnu/lib/amd64 |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
104 |
[5] RPATH /usr/gcc/4.6/lib/amd64:/usr/gnu/lib/amd64 |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
105 |
(note: now there is one /usr/gnu/lib/amd64, you did specify one |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
106 |
explicitly, and you told the order for searches) |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
107 |
|
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
108 |
This ensures, that libgcc_s.so.1 is found first in /usr/gcc/4.6/lib/amd64 |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
109 |
and not one of the other copies lingering around in other lib directories |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
110 |
|
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
111 |
|
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
112 |
Setting the LINK_LIBGCC_SPEC is borrowed from the pkgsrc project where they |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
113 |
set theyr compiler to find runtimes in theyr private filesystem tree. |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
114 |
|
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
115 |
MD_EXEC_PREFIX is preparing to search for compiler tools (not already in use, |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
116 |
except there would be other symlinks there, e.g. ln -s /usr/gcc/4.6/bin/gcc /usr/gcc/bin/gcc |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
117 |
|
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
118 |
--- gcc-4.6.1/gcc/config/i386/sol2-10.h.orig2 2011-09-04 14:11:55.630203689 +0200 |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
119 |
+++ gcc-4.6.1/gcc/config/i386/sol2-10.h 2011-09-04 14:23:37.527910080 +0200 |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
120 |
@@ -131,6 +131,13 @@ |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
121 |
#define LINK_ARCH_SPEC TARGET_LD_EMULATION \ |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
122 |
"%{m64:" LINK_ARCH64_SPEC "}%{!m64:" LINK_ARCH32_SPEC "}" |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
123 |
|
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
124 |
+/* #undef LINK_LIBGCC_SPECIAL_1 */ |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
125 |
+/* #define LINK_LIBGCC_SPECIAL_1=1 */ |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
126 |
+#undef LINK_LIBGCC_SPEC |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
127 |
+#define LINK_LIBGCC_SPEC "%{m64:" "-R /usr/gcc/4.6/lib/sparcv9:/usr/gcc/lib/sparcv9 %D" "}%{!m64:" "-R /usr/gcc/4.6/lib:/usr/gcc/lib %D" "}" |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
128 |
+#undef MD_EXEC_PREFIX |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
129 |
+#define MD_EXEC_PREFIX "/usr/gcc/bin/" |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
130 |
+#define LINK_ELIMINATE_DUPLICATE_LDIRECTORIES 0 |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
131 |
/* We do not need to search a special directory for startup files. */ |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
132 |
#undef MD_STARTFILE_PREFIX |
843c20204045
experimental/SFEgcc-runpath.spec (no runpath but still find runtime perfectly): make compatibiity symlinks go into meta packages, files into new versioned pacakge names, change to LD=/usr/bin/ld, add patch5 on sparc gcc-05-LINK_LIBGCC_SPEC-sparcv9.diff
tom68
parents:
diff
changeset
|
133 |