diff options
Diffstat (limited to 'solenv/inc/unxnbsd.mk')
-rw-r--r-- | solenv/inc/unxnbsd.mk | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/solenv/inc/unxnbsd.mk b/solenv/inc/unxnbsd.mk new file mode 100644 index 000000000000..b7d5e042e6fd --- /dev/null +++ b/solenv/inc/unxnbsd.mk @@ -0,0 +1,25 @@ +# +# mk file for NetBSD +# + +# arch specific defines +.IF "$(CPUNAME)" == "INTEL" +CDEFS+=-DX86 +.ENDIF + +.IF "$(CPUNAME)" == "X86_64" +CDEFS+=-DX86_64 +BUILD64=1 +.ENDIF + +.INCLUDE : unxgcc.mk + +# default linker flags +# NetBSD has no support for using relative paths with $ORIGIN +LINKFLAGSRUNPATH_UREBIN= +LINKFLAGSRUNPATH_OOO= +LINKFLAGSRUNPATH_SDK= +LINKFLAGSRUNPATH_BRAND= + +LINKFLAGSDEFS=-Wl,--ignore-unresolved-symbol,environ +LINKFLAGS=-Wl,-z,combreloc $(LINKFLAGSDEFS) |