We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2813

Summary: "make cross" from win32/mingw package installs SDL2_image.pc with wrong prefix.
Product: SDL_image Reporter: Alistair Buxton <a.j.buxton>
Component: miscAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.0   
Hardware: x86_64   
OS: Linux   

Description Alistair Buxton 2014-12-10 17:39:17 UTC
To reproduce:

1. Download http://libsdl.org/release/SDL2-devel-2.0.3-mingw.tar.gz and untar it.
2. Edit Makefile and change CROSS_PATH to something different.
3. Run "make cross".
4. Inspect the file $CROSS_PATH/i686_w64_mingw/lib/pkgconfg/sdl2.pc

Result: the files are installed into the path you set in CROSS_PATH. The sdl2.pc has CROSS_PATH as it's prefix.

So far so good. Now repeat the above steps with SDL_image from:

http://www.libsdl.org/projects/SDL_image/release/SDL2_image-devel-2.0.0-mingw.tar.gz

You will find that SDL2_image.pc is installed to the correct location from CROSS_PATH but inside the file the prefix is still set to /usr/local/cross-tools/i686_w64_mingw/

The same thing also happens with SDL2_mixer. I have not checked with the other libraries.
Comment 1 Sam Lantinga 2017-09-12 07:59:03 UTC
This is fixed for 2.0.2, thanks!