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 5043

Summary: All of --disable-sdlframework --disable-sdltest --disable-freetypetest will still compile showfont with -lSDL2 -lfreetype
Product: SDL_ttf Reporter: Ellie <etc0de>
Component: miscAssignee: Sam Lantinga <slouken>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.15   
Hardware: x86_64   
OS: Linux   

Description Ellie 2020-03-18 02:49:01 UTC
All of --disable-sdlframework --disable-sdltest --disable-freetypetest will still compile "showfont" (whatever that is) when attempting to compile libSDL2_ttf, and it'll break if no SDL2 and/or freetype are found system-wide. I am struggling to get cross-compiling to work due to this, and I really don't need this showfont tool.

It would be very helpful for cross-compiling if this could be addressed with either an additional --really-dont-try-to-ever-link-sdl option, or a fix for --disable-sdltest --disable-freetypetest if they were meant to suppress this.
Comment 1 Ellie 2020-03-18 11:22:38 UTC
For anyone who runs into this problem as well and needs a quick workaround, this worked for me:

sed -i 's/noinst_PROGRAMS =.*//g' "./Makefile.am"


(This disables compiling all the test and extra programs, kind of what I expected --disable-sdltest to do.)