summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2014-08-04 23:39:24 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2014-08-04 23:44:49 (GMT)
commit0656ed047ae78e9d7a190a423d52c104990727b3 (patch)
tree29805e1dad7aed081b2cf0a778c6e0d09a0e9ff8
parent5f47111c0da5ac38a33f959494c812e0fd2db08c (diff)
downloadmxe-0656ed047ae78e9d7a190a423d52c104990727b3.zip
mxe-0656ed047ae78e9d7a190a423d52c104990727b3.tar.gz
mxe-0656ed047ae78e9d7a190a423d52c104990727b3.tar.bz2
sdl2_gfx: enable shared build
-rw-r--r--src/sdl2_gfx.mk10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/sdl2_gfx.mk b/src/sdl2_gfx.mk
index 263da56..8cc01b2 100644
--- a/src/sdl2_gfx.mk
+++ b/src/sdl2_gfx.mk
@@ -19,10 +19,10 @@ endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
- --host='$(TARGET)' \
- --disable-shared \
- --prefix='$(PREFIX)/$(TARGET)' \
- --with-sdl-prefix='$(PREFIX)/$(TARGET)'
+ $(MXE_CONFIGURE_OPTS) \
+ --with-sdl-prefix='$(PREFIX)/$(TARGET)' \
+ SDL_LIBS=$($(TARGET)-pkg-config --libs sdl2 | sed -e 's/-lmingw32//' -e 's/-lSDL2main//') \
+ SDL_CFLAGS=$($(TARGET)-pkg-config --cflags sdl2 | sed 's/-Dmain=SDL_main//'))
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
'$(TARGET)-gcc' \
@@ -31,7 +31,5 @@ define $(PKG)_BUILD
`'$(TARGET)-pkg-config' SDL2_gfx --cflags --libs`
endef
-$(PKG)_BUILD_SHARED =
-
# sdl2 is disabled on i686-pc-mingw32.
$(PKG)_BUILD_i686-pc-mingw32 =