summaryrefslogtreecommitdiffstats
path: root/src/libcaca.mk
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2014-09-25 02:32:18 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2014-09-25 02:32:18 (GMT)
commit42975a1b0c881a800a162a99bf8f57d0996ac0b8 (patch)
tree0049dc9e2aaa686d4f4861b266f5864bd8c3ee4c /src/libcaca.mk
parent698c1e7f74c01e3978048770e05146fb46e0954e (diff)
downloadmxe-42975a1b0c881a800a162a99bf8f57d0996ac0b8.zip
mxe-42975a1b0c881a800a162a99bf8f57d0996ac0b8.tar.gz
mxe-42975a1b0c881a800a162a99bf8f57d0996ac0b8.tar.bz2
libcaca: use pkg-config --static
GLUT is a beast. Really fixes #511. Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to 'src/libcaca.mk')
-rw-r--r--src/libcaca.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libcaca.mk b/src/libcaca.mk
index 221ed9f..6b5e667 100644
--- a/src/libcaca.mk
+++ b/src/libcaca.mk
@@ -22,7 +22,9 @@ define $(PKG)_BUILD
$(if $(BUILD_STATIC), \
$(SED) -i 's/__declspec(dllimport)//' '$(1)/caca/caca.h'; \
$(SED) -i 's/__declspec(dllimport)//' '$(1)/caca/caca0.h')
- cd '$(1)' && ./configure \
+ # Somehow glut *requires* -lopengl32 etc. even if it's built as shared
+ cd '$(1)' && PKG_CONFIG='i686-w64-mingw32.shared-pkg-config --static' \
+ ./configure \
$(MXE_CONFIGURE_OPTS) \
--disable-csharp \
--disable-java \