summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2018-03-11 03:55:48 (GMT)
committerTony Theodore <tonyt@logyst.com>2018-03-12 03:28:14 (GMT)
commit4f21088b48d540a26cdefdae01b69f743a1a0d71 (patch)
tree1ceaee72775da775a74237b2eef2bef305cab9df
parent38c43b5017befbf0153d3a5f2165e80c064329ad (diff)
downloadmxe-4f21088b48d540a26cdefdae01b69f743a1a0d71.zip
mxe-4f21088b48d540a26cdefdae01b69f743a1a0d71.tar.gz
mxe-4f21088b48d540a26cdefdae01b69f743a1a0d71.tar.bz2
build-pkg: build nonet and check-reqs early, ignore .waf* artefacts
-rw-r--r--Makefile3
-rwxr-xr-xtools/build-pkg.lua3
2 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4318c13..192bb6c 100644
--- a/Makefile
+++ b/Makefile
@@ -674,6 +674,9 @@ $(NONET_LIB): $(TOP_DIR)/tools/nonetwork.c | $(PREFIX)/$(BUILD)/lib/.gitkeep
@$(PRINTF_FMT) '[nonet lib]' '$@'
+@$(BUILD_CC) -shared -fPIC $(NONET_CFLAGS) -o $@ $<
+.PHONY: nonet-lib
+nonet-lib: $(NONET_LIB)
+
.PHONY: shell
shell: $(NONET_LIB)
$(PRELOAD) $(SHELL)
diff --git a/tools/build-pkg.lua b/tools/build-pkg.lua
index 90949c6..0f9998f 100755
--- a/tools/build-pkg.lua
+++ b/tools/build-pkg.lua
@@ -439,6 +439,7 @@ end
local function gitInit()
os.execute('mkdir -p ./usr')
os.execute(GIT .. 'init --quiet')
+ os.execute('echo .waf* >> ./usr/.git/info/exclude')
end
local function gitTag(name)
@@ -1096,7 +1097,7 @@ local function main()
MXE_DIR, MXE_DIR_EXPECTED)
end
gitInit()
- assert(execute(("%s check-requirements MXE_TARGETS=%q"):format(
+ assert(execute(("%s check-requirements nonet-lib print-git-oneline MXE_TARGETS=%q"):format(
tool 'make', table.concat(TARGETS, ' '))))
if not max_items then
downloadPackages()