summaryrefslogtreecommitdiffstats
path: root/src/upx.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2016-01-10 01:29:03 (GMT)
committerTony Theodore <tonyt@logyst.com>2016-01-10 10:43:13 (GMT)
commitcc4509ccea306af798a5dda0b4715e4f986c90c0 (patch)
tree36a18d1db7f9e2ffa3096720092846b78dff0124 /src/upx.mk
parent513096f06ec35a4c9fcdb1d7941a05f78883d1bb (diff)
downloadmxe-cc4509ccea306af798a5dda0b4715e4f986c90c0.zip
mxe-cc4509ccea306af798a5dda0b4715e4f986c90c0.tar.gz
mxe-cc4509ccea306af798a5dda0b4715e4f986c90c0.tar.bz2
upx: fix unused-local-typedef errors on OSX
resulting executable works and compresses fine
Diffstat (limited to 'src/upx.mk')
-rw-r--r--src/upx.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/upx.mk b/src/upx.mk
index db6ad76..205ae8f 100644
--- a/src/upx.mk
+++ b/src/upx.mk
@@ -47,6 +47,7 @@ define $(PKG)_BUILD_$(BUILD)
'CC=$(BUILD_CC)' \
'PKG_CONFIG=$(PREFIX)/$(BUILD)/bin/pkgconf' \
'LIBS=-L$(PREFIX)/$(BUILD)/lib -lucl -lz' \
+ $(shell [ `uname -s` == Darwin ] && echo "CXXFLAGS='-Wno-error=unused-local-typedef'") \
'exeext='
cp '$(1)/src/upx' '$(PREFIX)/$(BUILD)/bin/'
endef