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 1324 - Add support for --enable-debug
Summary: Add support for --enable-debug
Status: RESOLVED ABANDONED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: HG 2.0
Hardware: All Linux
: P2 enhancement
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-04 03:22 UTC by the_isz
Modified: 2018-08-06 21:20 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description the_isz 2011-11-04 03:22:07 UTC
It would be really helpful for debugging purposes to have a configure option
which enables debugging symbols in the library. Merely setting CFLAGS="-g -O0"
didn't do the trick, running 'file libSDL-1.3.so.0.0.0' still yielded:

libSDL-1.3.so.0.0.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=0x8755a86fe6787defdc36285f76f147912a223db1, stripped
Comment 1 Sam Lantinga 2011-12-29 02:39:20 UTC
Sure, that sounds good.  Do you have a patch to do this?
Comment 2 the_isz 2012-01-02 10:30:48 UTC
Hi Sam,

no, sorry, I don't have a patch. I was experimenting with SDL and thought it
might be a good idea to report this issue I was having.

Happy new year!
Comment 3 Sam Lantinga 2012-01-02 20:33:11 UTC
Okay, well if you have something specific in mind, feel free to attach a patch.

Happy New Year! :)
Comment 4 Sam Lantinga 2012-01-08 11:12:55 UTC
Oh, I see what the issue is.  It looks like there isn't any way to tell libtool not to strip when installing.

Can you try manually copying the shared library from .libs to your install directory?
Comment 5 Sam Lantinga 2012-01-08 11:14:48 UTC
Oh, it looks like you can hijack strip as well, so this should work:
./configure CFLAGS="-g" STRIP=":"
Comment 6 the_isz 2012-01-08 11:27:21 UTC
Hi again Sam,

I just moved to a new place and will only have a _very_ slow internet connection
for the next two weeks, so I won't be able to download the SDL library and test
your suggestions. As soon as I'm really back online, I will get to it asap.

Kind regards,

Timo
Comment 7 Sam Lantinga 2012-01-08 11:50:46 UTC
Great, thanks!
Comment 8 Ryan C. Gordon 2018-08-06 21:20:23 UTC
Hello, and sorry if you're getting dozens of copies of this message by email.

We are closing out bugs that appear to be abandoned in some form. This can happen for lots of reasons: we couldn't reproduce it, conversation faded out, the bug was noted as fixed in a comment but we forgot to mark it resolved, the report is good but the fix is impractical, we fixed it a long time ago without realizing there was an associated report, etc.

Individually, any of these bugs might have a better resolution (such as WONTFIX or WORKSFORME or INVALID) but we've added a new resolution of ABANDONED to make this easily searchable and make it clear that it's not necessarily unreasonable to revive a given bug report.

So if this bug is still a going concern and you feel it should still be open: please feel free to reopen it! But unless you respond, we'd like to consider these bugs closed, as many of them are several years old and overwhelming our ability to prioritize recent issues.

(please note that hundred of bug reports were sorted through here, so we apologize for any human error. Just reopen the bug in that case!)

Thanks,
--ryan.