aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-05-28 01:37:41 -0700
committerMichael Forney <mforney@mforney.org>2019-05-28 01:37:41 -0700
commitc1d079fae39e20ea695f575a221e2251727d07aa (patch)
treed7dd86fa44f9790425bba2a3a64c074351d13f4f
parent02bb123e98718bb01ea30d44e613a5a4def06f3e (diff)
configure: Add some defines necessary for OpenBSD
-rwxr-xr-xconfigure7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure b/configure
index e504bcb..c30d4c3 100755
--- a/configure
+++ b/configure
@@ -109,6 +109,13 @@ case "$target" in
startfiles='"-l", ":crt0.o", "-l", ":crtbegin.o"'
endfiles='"-l", "c", "-l", ":crtend.o"'
linkflags='"-L", "/usr/lib",'
+ defines='
+ /* required to prevent libc headers from declaring functions with conflicting linkage */
+ "-D", "_ANSI_LIBRARY",
+
+ /* used like attribute after declarator, so _Alignas will not work here */
+ "-D", "__aligned(x)=",
+'
;;
*)
fail "unknown target '$target', please create config.h manually"