summaryrefslogtreecommitdiffstats
path: root/make/variant
diff options
context:
space:
mode:
authorRyo ONODERA <[email protected]>2019-05-03 21:39:55 +0900
committerBradley Sepos <[email protected]>2019-06-18 10:42:42 -0400
commitf8a776a546b2b2f534ce45681878a538e48a5737 (patch)
tree2bfd00514f3afb4fcc1634ccb3e566056e180886 /make/variant
parentec37c8341ea0d57d106e758da1027e9498b81735 (diff)
Add a definition file for NetBSD
Add basic definitions for NetBSD.
Diffstat (limited to 'make/variant')
-rw-r--r--make/variant/netbsd.defs19
1 files changed, 19 insertions, 0 deletions
diff --git a/make/variant/netbsd.defs b/make/variant/netbsd.defs
new file mode 100644
index 000000000..37c623f70
--- /dev/null
+++ b/make/variant/netbsd.defs
@@ -0,0 +1,19 @@
+# LOCALBASE is where NetBSD packages are installed. default is '/usr/pkg'.
+LOCALBASE ?= /usr/pkg
+
+TARGET.dylib.ext = .so
+
+GCC.D = LIBICONV_PLUG
+
+GCC.args.dylib = -shared
+GCC.args.pic = 1
+
+GCC.args.g.none = -g0
+GCC.args.g.min = -g1
+GCC.args.g.std = -g2
+GCC.args.g.max = -g3
+
+GCC.MAJOR_VERSION = $(shell $(GCC.gcc) -dumpversion | cut -f 1 -d .)
+GCC.LDFLAGS =
+LDFLAGS += $(if $(findstring gcc, $(GCC.gcc)), $(GCC.LDFLAGS), )
+LDFLAGS += -L/usr/pkg/lib -Wl,-R/usr/pkg/lib