[Haskell-cafe] Haskell, SDL, OpenGL

Sven Panne Sven.Panne at aedion.de
Wed Jul 20 03:34:46 EDT 2005

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.


More information about the Haskell-Cafe mailing list