Skip to content
  • Stefan Weil's avatar
    fec0e3e8
    Fix cross compilation · fec0e3e8
    Stefan Weil authored
    
    
    This patch enhances the algorithm which finds the correct settings for SDL.
    For cross compilations (when cross_prefix is set), it looks for sdl-config
    with cross prefix. Here is the complete search order:
    
    $(cross_prefix}pkg-config              (old, only used for cross compilation)
    ${cross_prefix}sdl_config              (new, only used for cross compilation)
    pkg-config                             (old, needs PATH)
    sdl-config                             (old, needs PATH)
    
    Cross SDL packages (or the user) now can simply set a link (for example
    /usr/bin/i586-mingw32msvc-sdl-config -> /usr/i586-mingw32msvc/bin/sdl-config)
    which allows cross compilations without PATH modifications.
    
    Without the patch, configure and make (which calls configure) typically
    need a non-standard PATH. Failing to set this special PATH results in
    broken builds.
    
    Signed-off-by: default avatarStefan Weil <weil@mail.berlios.de>
    Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
    fec0e3e8
    Fix cross compilation
    Stefan Weil authored
    
    
    This patch enhances the algorithm which finds the correct settings for SDL.
    For cross compilations (when cross_prefix is set), it looks for sdl-config
    with cross prefix. Here is the complete search order:
    
    $(cross_prefix}pkg-config              (old, only used for cross compilation)
    ${cross_prefix}sdl_config              (new, only used for cross compilation)
    pkg-config                             (old, needs PATH)
    sdl-config                             (old, needs PATH)
    
    Cross SDL packages (or the user) now can simply set a link (for example
    /usr/bin/i586-mingw32msvc-sdl-config -> /usr/i586-mingw32msvc/bin/sdl-config)
    which allows cross compilations without PATH modifications.
    
    Without the patch, configure and make (which calls configure) typically
    need a non-standard PATH. Failing to set this special PATH results in
    broken builds.
    
    Signed-off-by: default avatarStefan Weil <weil@mail.berlios.de>
    Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
Loading