
20 Jul
2005
20 Jul
'05
5:09 a.m.
On 7/20/05, Sven Panne
Am Montag, 18. Juli 2005 18:46 schrieb yin:
[...] ld-options: -L/usr/lib -Wl -rpath /usr/lib -lSDL
This looks a bit suspicious: The syntax for ld options is "-rpath DIR", so the option for gcc should be "-Wl,-rpath,DIR". Ugly, but I didn't invent that. :-) Furthermore, I've never seen a Linux/*nix system where the (dynamic) linker doesn't look into /usr/lib, so probably the best way is to simply use:
ld-options: -lSDL
In addition, the -rpath option can be a bit surprising for the user of the executable later, depending on OS/platform peculiarities.
'sdl-config' is used to set 'ld-options'. Hard coding it is not an option. -- Friendly, Lemmih