Changeset - r23393:86804bb52dda
[Not reviewed]
master
0 1 0
Charles Pigott - 6 years ago 2019-03-03 16:59:36
charlespigott@googlemail.com
Fix #7308: SDL linker flags were not added on MinGW
1 file changed with 4 insertions and 6 deletions:
0 comments (0 inline, 0 general)
config.lib
Show inline comments
 
@@ -1678,18 +1678,16 @@ make_cflags_and_ldflags() {
 
	fi
 

	
 
	if [ -n "$sdl_config" ]; then
 
		CFLAGS="$CFLAGS -DWITH_SDL"
 
		# SDL must not add _GNU_SOURCE as it breaks many platforms
 
		CFLAGS="$CFLAGS `$sdl_config --cflags | sed 's@-D_GNU_SOURCE[^ ]*@@'`"
 
		if [ "$os" != "MINGW" ] && [ "$os" != "CYGWIN" ]; then
 
			if [ "$enable_static" != "0" ]; then
 
				LIBS="$LIBS `$sdl_config --static --libs`"
 
			else
 
				LIBS="$LIBS `$sdl_config --libs`"
 
			fi
 
		if [ "$enable_static" != "0" ]; then
 
			LIBS="$LIBS `$sdl_config --static --libs`"
 
		else
 
			LIBS="$LIBS `$sdl_config --libs`"
 
		fi
 
	fi
 

	
 
	if [ "$with_cocoa" != "0" ]; then
 
		CFLAGS="$CFLAGS -DWITH_COCOA"
 
		LIBS="$LIBS -F/System/Library/Frameworks -framework Cocoa -framework Carbon -framework AudioUnit -framework AudioToolbox"
0 comments (0 inline, 0 general)