Ticket #593 (closed enhancement: fixed)
Opened 3 years ago
Last modified 9 months ago
Make sdl-config handle hybrid systems
| Reported by: | pulkomandy | Owned by: | scottmc |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | media-libs/libsdl | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
current sdl-config always reports /boot/common/lib as the lib dir. This is not good, because it makes it hard to create a gcc4 SDL app from a gcc2h install. This is one reason we see a lot of people switching to gcc4h.
Attached is a modified sdl-config that :
- Detects the flavour of Haiku by looking at libsupc++ in system lib dir,
- Detects the compiler by looking at setgcc output
- Figures out the right path to use.
I don't know how to integrate it in SDL build system, it looks like the rules used to generate sdl-config there are too simple. I suggest we just replace it after building.
Attachments
Change History
Changed 3 years ago by pulkomandy
- attachment sdl-config added
comment:1 Changed 3 years ago by pulkomandy
Bug submitted upstream:
http://bugzilla.libsdl.org/show_bug.cgi?id=1628
comment:2 Changed 9 months ago by pulkomandy
- Resolution set to fixed
- Status changed from new to closed
Works better now. There is an sdl-config-x86 and setarch will set the path so it gets used.

Modified sdl-config script