Fixed bug 3539 - SDL2, missing MIR LDFLAGS
authorSam Lantinga <slouken@libsdl.org>
Mon, 02 Jan 2017 10:30:32 -0800
changeset 107423034ea08d805
parent 10741 a32fd6b7412b
child 10743 8ccdeceaae6d
Fixed bug 3539 - SDL2, missing MIR LDFLAGS

Gianfranco

Hello, this is the failure I got

https://launchpadlibrarian.net/300679206/buildlog_ubuntu-zesty-amd64.libsdl2_2.0.5+dfsg1-2ubuntu1_BUILDING.txt.gz

LTLINK build/libSDL2.la
build/.libs/SDL_mirvideo.o: In function `MIR_InitDisplayFromOutput':
././src/video/mir/SDL_mirvideo.c:258: undefined reference to `mir_output_get_current_mode'
collect2: error: ld returned 1 exit status
src/video/mir/SDL_mirsym.h
src/video/mir/SDL_mirvideo.c
     1.1 --- a/src/video/mir/SDL_mirsym.h	Sun Jan 01 19:10:36 2017 -0800
     1.2 +++ b/src/video/mir/SDL_mirsym.h	Mon Jan 02 10:30:32 2017 -0800
     1.3 @@ -102,6 +102,7 @@
     1.4  SDL_MIR_SYM(int,mir_display_config_get_num_outputs,(MirDisplayConfig const* config))
     1.5  SDL_MIR_SYM(MirOutput*,mir_display_config_get_mutable_output,(MirDisplayConfig* config, size_t index))
     1.6  SDL_MIR_SYM(int,mir_output_get_num_modes,(MirOutput const* output))
     1.7 +SDL_MIR_SYM(MirOutputMode const*,mir_output_get_current_mode,(MirOutput const* output))
     1.8  SDL_MIR_SYM(MirPixelFormat,mir_output_get_current_pixel_format,(MirOutput const* output))
     1.9  SDL_MIR_SYM(int,mir_output_get_position_x,(MirOutput const* output))
    1.10  SDL_MIR_SYM(int,mir_output_get_position_y,(MirOutput const* output))
     2.1 --- a/src/video/mir/SDL_mirvideo.c	Sun Jan 01 19:10:36 2017 -0800
     2.2 +++ b/src/video/mir/SDL_mirvideo.c	Mon Jan 02 10:30:32 2017 -0800
     2.3 @@ -255,7 +255,7 @@
     2.4  
     2.5      MirPixelFormat format = MIR_mir_output_get_current_pixel_format(output);
     2.6      int num_modes         = MIR_mir_output_get_num_modes(output);
     2.7 -    SDL_DisplayMode current_mode = MIR_ConvertModeToSDLMode(mir_output_get_current_mode(output), format);
     2.8 +    SDL_DisplayMode current_mode = MIR_ConvertModeToSDLMode(MIR_mir_output_get_current_mode(output), format);
     2.9  
    2.10      SDL_zero(display);
    2.11