Skip to content

Commit ce5d4f3

Browse files
Hao HUdessant
Hao HU
authored andcommitted
merge sdl2_flags with the rest of compilation flags
* Update setup.py for SDL2 on Linux enable the SDL2 capability when the series of SDL2 libraries can be resolved * Update setup.py * revert previous change * Update setup.py merge sdl2_flags to flags when sdl2_flags is not empty
1 parent 83b52d3 commit ce5d4f3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

setup.py

+3
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,9 @@ def determine_sdl2():
626626
['-L' + p for p in sdl2_paths] if sdl2_paths else
627627
['-L/usr/local/lib/'])
628628

629+
if sdl2_flags:
630+
flags = merge(flags, sdl2_flags)
631+
629632
# ensure headers for all the SDL2 and sub libraries are available
630633
libs_to_check = ['SDL', 'SDL_mixer', 'SDL_ttf', 'SDL_image']
631634
can_compile = True

0 commit comments

Comments
 (0)