We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3730 - SDL can't link libstdc++.r4 on x86_64 Haiku Nightly pre-alpha R5
Summary: SDL can't link libstdc++.r4 on x86_64 Haiku Nightly pre-alpha R5
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.1
Hardware: x86_64 Haiku
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-06 23:56 UTC by Vitaly Novichkov
Modified: 2017-08-09 23:05 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vitaly Novichkov 2017-08-06 23:56:26 UTC
Linker fails to link libstdc++.r4 (libstdc++.r4.so). To escape this, I did the workaround: I have created a symbolic link to /boot/system/lib/libstdc++.so.6 and named as libstdc++.r4.so, and I have placed it into prefix folder which I have defined on ./configure running, and linking has been passed.

I built SDL2 via "Autotools".
Comment 1 Ryan C. Gordon 2017-08-09 04:59:13 UTC
configure.in explicitly lists this file at the moment, but the correct solution that should work everywhere is if we can coerce the configure script to link the library with g++ instead of gcc and not mention libstdc++ at all, but only on Haiku.

Not sure what needs to be done to make that happen.

--ryan.
Comment 2 Ryan C. Gordon 2017-08-09 23:05:30 UTC
> Not sure what needs to be done to make that happen.

I couldn't coerce libtool to use g++; even when explicitly requested, it switches it out with gcc.  Weird.

I did a different workaround in https://hg.libsdl.org/SDL/rev/ab9d4689a439 and made sure it worked on both x86 and x86-64 Haiku releases, though, so this should be fixed now.

--ryan.