commit 2f9ee2943948454638d724feeacbbae63a63179c
parent 06a981d5ab044c5d73dd22d4420d4daa4b8c6f33
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Wed, 9 Oct 2024 10:29:26 +0200
build: Run config target with detected configuration
The flag NOPIE_FLAGS is set by the configuration script,
but the target config was not executed under the environment
generated by the config tool. This was creating a problem in
OpenBSD because it was executing the linker with pie creating
problems with the symbold end.
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
@@ -13,12 +13,13 @@ include scripts/rules.mk
ROOT = $(DESTDIR)$(PREFIX)
NODEP = 1
-all: config
+all:
+ +@$(MAKE) `$(SCRIPTDIR)/config -c` config
+@$(MAKE) `$(SCRIPTDIR)/config -c` toolchain
+@$(MAKE) `$(SCRIPTDIR)/config` `uname -m`
config:
- cd include/bits/scc && $(MAKE) $@
+ +@cd include/bits/scc && $(MAKE) $@
install: all
$(SCRIPTDIR)/install $(ROOT)