Bug 1628 - Support for dual-compiler nature of Haiku on x86
Support for dual-compiler nature of Haiku on x86
Status: NEW
Product: SDL
Classification: Unclassified
Component: build
HG 1.2
x86 Haiku
: P2 normal
Assigned To: Sam Lantinga
Sam Lantinga
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-24 12:59 UTC by PulkoMandy
Modified: 2012-10-24 12:59 UTC (History)
0 users

See Also:


Attachments
Modified sdl-config that handles dual-compiler setup for Haiku. (1.56 KB, application/octet-stream)
2012-10-24 12:59 UTC, PulkoMandy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description PulkoMandy 2012-10-24 12:59:00 UTC
Created attachment 978 [details]
Modified sdl-config that handles dual-compiler setup for Haiku.

Haiku tries to keep binary compatibility with BeOS. This involves building the system with gcc2 because of C++ ABI breakage. Most applications, however, need gcc4 to build properly.
So Haiku has a system called hybrid builds, where both compilers are available. Each of them comes with its own set of libs.

The problem is sdl-config doesn't handle that. I made a modified version of it that will use the setgcc command and use the right path for the libs in all cases.

I'm not sure how to integrate this to SDL build system. The script that generates sdl-config does not look flexible enough.
SDL 2.0 likely needs the same kind of fix, but I haven't looked at it yet.