[Qemu-devel] Re: [PATCH] Give sdl-config higher priority than pkg-config

2010-02-14 Thread Jacob Meuser
On Sun, Feb 14, 2010 at 01:04:31PM +0100, Paolo Bonzini wrote: > On 02/14/2010 08:23 AM, Blue Swirl wrote: > >On OpenBSD, pkg-config sdl --cflags forgets to add -I/usr/local/include > >which is needed for iconv.h (included from SDL.h). This makes SDL > >detection fail. > > > >Try sdl-config first,

[Qemu-devel] Re: [PATCH] Give sdl-config higher priority than pkg-config

2010-02-14 Thread Paolo Bonzini
Right. I think this patch against ports/devel/sdl should do the trick: --- patches/patch-sdl_pc_in.origSun Feb 14 14:08:41 2010 +++ patches/patch-sdl_pc_in Sun Feb 14 14:10:50 2010 @@ -8,4 +8,4 @@ -Libs: -L${libdir} @SDL_RLD_FLAGS@ @SDL_LIBS@ -Cflags: -I${includedir}/SDL @SDL_CF

[Qemu-devel] Re: [PATCH] Give sdl-config higher priority than pkg-config

2010-02-14 Thread Blue Swirl
On Sun, Feb 14, 2010 at 2:04 PM, Paolo Bonzini wrote: > On 02/14/2010 08:23 AM, Blue Swirl wrote: >> >> On OpenBSD, pkg-config sdl --cflags forgets to add -I/usr/local/include >> which is needed for iconv.h (included from SDL.h). This makes SDL >> detection fail. >> >> Try sdl-config first, only i

[Qemu-devel] Re: [PATCH] Give sdl-config higher priority than pkg-config

2010-02-14 Thread Paolo Bonzini
On 02/14/2010 08:23 AM, Blue Swirl wrote: On OpenBSD, pkg-config sdl --cflags forgets to add -I/usr/local/include which is needed for iconv.h (included from SDL.h). This makes SDL detection fail. Try sdl-config first, only if it fails try pkg-config. This breaks cross-compilation. I'm CCing t