summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2016-01-31 05:56:58 (GMT)
committerTony Theodore <tonyt@logyst.com>2016-01-31 05:56:58 (GMT)
commita2e79fec92b09dbac440de062195df710e83d7f1 (patch)
tree47c0f45a9e17fbb7a38fa7abe39996a1ccfc47bc /Makefile
parentddb0b19de4d43fd4054233f04f541c5f860be6d2 (diff)
downloadmxe-a2e79fec92b09dbac440de062195df710e83d7f1.zip
mxe-a2e79fec92b09dbac440de062195df710e83d7f1.tar.gz
mxe-a2e79fec92b09dbac440de062195df710e83d7f1.tar.bz2
automatically set MXE_PLUGIN_DIRS for native requirements
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 132bd11..d0c73c4 100644
--- a/Makefile
+++ b/Makefile
@@ -314,6 +314,10 @@ LOOKUP_PKG_RULE = $(strip \
.PHONY: all
all: all-filtered
+# Build native requirements for certain systems
+OS_SHORT_NAME := $(call lc,$(shell lsb_release -sc 2>/dev/null || uname -s))
+MXE_PLUGIN_DIRS += $(realpath $(TOP_DIR)/plugins/native/$(OS_SHORT_NAME))
+
.PHONY: check-requirements
define CHECK_REQUIREMENT
@if ! $(1) --help &>/dev/null; then \