[sword-devel] Answers: gcc vs egcs and linking statically
Uwe Koloska
sword-devel@crosswire.org
Sun, 9 Apr 2000 22:53:29 +0200
Hello,
there are two questions / problems that I can help with:
1. gcc vs egcs
gcc 2.8 is dead and egcs is the official gnu compiler. gcc 2.95.x is
really egcs heading for gcc 3
2. statically linking
there are two possible ways for linking some specific libraries static
while all the others remain dynamically:
- present the full path of libLIB.a to the linker (this solution is
dependent to your personal system and should not be used in public
makefiles)
- command the linker explicit to link some libraries static:
g++ [...] -Wl,-Bstatic -lqt -Wl,-Bdynamic [...]
`-Wl,OPTION'
Pass OPTION as an option to the linker. If OPTION contains
commas, it is split into multiple options at the commas.
[from gcc.info]
This one should be used for public Makefiles.
BTW: Reading the manuals (like the bible) is a great thing to do ;-))
Yours
Uwe Koloska
--
mailto:koloska@rcs.urz.tu-dresden.de
http://rcswww.urz.tu-dresden.de/~koloska/
-- --
right now the web page is in german only
but this will change as time goes by ;-)