[Haskell-cafe] Haskell, SDL, OpenGL

Lemmih lemmih at gmail.com
Wed Jul 20 05:09:37 EDT 2005


On 7/20/05, Sven Panne <Sven.Panne at aedion.de> wrote:
> 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


More information about the Haskell-Cafe mailing list