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
This commit is contained in:
Hao HU 2016-11-20 19:45:55 +01:00 committed by dessant
parent 83b52d3b11
commit ce5d4f3797
1 changed files with 3 additions and 0 deletions

View File

@ -626,6 +626,9 @@ def determine_sdl2():
['-L' + p for p in sdl2_paths] if sdl2_paths else
['-L/usr/local/lib/'])
if sdl2_flags:
flags = merge(flags, sdl2_flags)
# ensure headers for all the SDL2 and sub libraries are available
libs_to_check = ['SDL', 'SDL_mixer', 'SDL_ttf', 'SDL_image']
can_compile = True