summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2014-03-10 02:33:47 (GMT)
committerTony Theodore <tonyt@logyst.com>2014-03-10 02:33:47 (GMT)
commit0ff238e8828ca20b526a7da00f728c279e095200 (patch)
treebbf07a94ceac38baccd5cf2183e721f10c243748 /Makefile
parentba382cbf17735e363fc22728e2131d09d4c81ce6 (diff)
downloadmxe-0ff238e8828ca20b526a7da00f728c279e095200.zip
mxe-0ff238e8828ca20b526a7da00f728c279e095200.tar.gz
mxe-0ff238e8828ca20b526a7da00f728c279e095200.tar.bz2
Makefile: add support for make-shared-from-static tool with default args
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9771974..79a8c72 100644
--- a/Makefile
+++ b/Makefile
@@ -59,6 +59,15 @@ MXE_CONFIGURE_OPTS = \
--enable-static --disable-shared , \
--disable-static --enable-shared )
+MAKE_SHARED_FROM_STATIC = \
+ '$(TOP_DIR)/tools/make-shared-from-static' \
+ $(if $(findstring mingw,$(TARGET)),--windowsdll) \
+ --ar '$(TARGET)-ar' \
+ --ld '$(TARGET)-gcc' \
+ --install '$(INSTALL)' \
+ --libdir '$(PREFIX)/$(TARGET)/lib' \
+ --bindir '$(PREFIX)/$(TARGET)/bin'
+
# use a minimal whitelist of safe environment variables
ENV_WHITELIST := PATH LANG MAKE% MXE% %PROXY %proxy
unexport $(filter-out $(ENV_WHITELIST),$(shell env | cut -d '=' -f1))