summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2013-08-27 08:42:27 (GMT)
committerTony Theodore <tonyt@logyst.com>2013-08-27 08:42:27 (GMT)
commit368150f334f3618b64bd1221eaf777dd1e1068c5 (patch)
tree3e0413331b80fee2166298542fa8eb42b162823a /Makefile
parent79efce7ffc929823e93e131a5e708dba0b745a48 (diff)
downloadmxe-368150f334f3618b64bd1221eaf777dd1e1068c5.zip
mxe-368150f334f3618b64bd1221eaf777dd1e1068c5.tar.gz
mxe-368150f334f3618b64bd1221eaf777dd1e1068c5.tar.bz2
Makefile: use cut instead of sed for env var list
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6ccda26..3670143 100644
--- a/Makefile
+++ b/Makefile
@@ -43,7 +43,7 @@ PATH := $(PREFIX)/$(BUILD)/bin:$(PREFIX)/bin:$(PATH)
# use a minimal whitelist of safe environment variables
ENV_WHITELIST := PATH LANG MAKE% MXE% %PROXY %proxy
-unexport $(filter-out $(ENV_WHITELIST),$(shell env | $(SED) -n 's,\(.*\)=.*,\1,p'))
+unexport $(filter-out $(ENV_WHITELIST),$(shell env | cut -d '=' -f1))
SHORT_PKG_VERSION = \
$(word 1,$(subst ., ,$($(1)_VERSION))).$(word 2,$(subst ., ,$($(1)_VERSION)))