summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.in4
-rw-r--r--builddeps/user.mk3
2 files changed, 4 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in
index 1270a21..508ee1c 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -73,12 +73,12 @@ all: stand/boot/ libc sbin bin base/boot/hyra-kernel
.PHONY: sbin
sbin: $(SBIN_MAKEDIRS)
make -C usr.sbin/ LDSCRIPT=$(shell pwd)/usr.sbin/link.ld USRDIR=$(USRDIR)\
- ROOT=$(PROJECT_ROOT)\
+ ROOT=$(PROJECT_ROOT) OSVER=$(HYRA_VERSION) OSARCH=$(ARCH)
.PHONY: bin
bin: $(BIN_MAKEDIRS)
make -C usr.bin/ LDSCRIPT=$(shell pwd)/usr.bin/link.ld USRDIR=$(USRDIR)\
- ROOT=$(PROJECT_ROOT)
+ ROOT=$(PROJECT_ROOT) OSVER=$(HYRA_VERSION) OSARCH=$(ARCH)
.PHONY: libc
libc:
diff --git a/builddeps/user.mk b/builddeps/user.mk
index d7ad582..d991ef8 100644
--- a/builddeps/user.mk
+++ b/builddeps/user.mk
@@ -4,4 +4,5 @@ USRDIR =
LDSCRIPT =
INTERNAL_CFLAGS = -T$(LDSCRIPT) -znoexecstack -nostdlib -I$(USRDIR)/include/ \
-L$(USRDIR)/lib -lc -pie -no-pie -fno-stack-protector \
- -fno-asynchronous-unwind-tables
+ -fno-asynchronous-unwind-tables -D_OSVER=\"$(OSVER)\" \
+ -D_OSARCH=\"$(OSARCH)\"