summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Yip <yipdw@member.fsf.org>2015-02-17 04:49:33 (GMT)
committerDavid Yip <yipdw@member.fsf.org>2015-02-17 05:26:00 (GMT)
commit9fc15f3baf6c07b734edf8f09449e279aa462c54 (patch)
tree531d5b7fa9a9a93b3ddb3ed6fd4307f4d1a56e4b /src
parent8b90047c7dd1aecfbf31dee3d9ec0de9c884b2fa (diff)
downloadmxe-9fc15f3baf6c07b734edf8f09449e279aa462c54.zip
mxe-9fc15f3baf6c07b734edf8f09449e279aa462c54.tar.gz
mxe-9fc15f3baf6c07b734edf8f09449e279aa462c54.tar.bz2
Enable shared build for physfs.
Diffstat (limited to 'src')
-rw-r--r--src/physfs.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/physfs.mk b/src/physfs.mk
index 8f5cd0f..d625902 100644
--- a/src/physfs.mk
+++ b/src/physfs.mk
@@ -20,7 +20,10 @@ endef
define $(PKG)_BUILD
cd '$(1)' && cmake . \
-DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
- -DPHYSFS_BUILD_SHARED=FALSE \
+ $(if $(BUILD_SHARED), \
+ -DPHYSFS_BUILD_SHARED=TRUE \
+ -DPHYSFS_BUILD_STATIC=FALSE, \
+ -DPHYSFS_BUILD_SHARED=FALSE) \
-DPHYSFS_INTERNAL_ZLIB=FALSE \
-DPHYSFS_BUILD_TEST=FALSE \
-DPHYSFS_BUILD_WX_TEST=FALSE
@@ -33,5 +36,3 @@ define $(PKG)_BUILD
endef
$(PKG)_BUILD_x86_64-w64-mingw32 =
-
-$(PKG)_BUILD_SHARED =