aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-06-15 17:25:46 -0700
committerMichael Forney <mforney@mforney.org>2021-06-16 00:28:10 -0700
commitfb10b3671f41a3e09837fd07b90da9c25a1bbf57 (patch)
treeabbc5beff6b2beb8371ee59908ab942b105cb72b /configure
parentab3187e9d02a9e4c3395c28858ac179d1fc5787b (diff)
Add initial NetBSD support
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure b/configure
index 526da31..1d8a0f2 100755
--- a/configure
+++ b/configure
@@ -116,6 +116,12 @@ case "$target" in
"-D", "__aligned(x)=",
'
;;
+*-*netbsd*)
+ : ${DEFAULT_DYNAMIC_LINKER:=/usr/libexec/ld.elf_so}
+ startfiles='"-l", ":crt0.o", "-l", ":crti.o"'
+ endfiles='"-l", "c", "-l", ":crtn.o"'
+ defines='"-D", "__builtin_stdarg_start(ap, last)=__builtin_va_start(ap, last)"'
+ ;;
*)
fail "unknown target '$target', please create config.h manually"
esac