diff options
Diffstat (limited to 'textproc/json-c/hacks.mk')
-rw-r--r-- | textproc/json-c/hacks.mk | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/textproc/json-c/hacks.mk b/textproc/json-c/hacks.mk new file mode 100644 index 00000000000..3bdeffdbaf1 --- /dev/null +++ b/textproc/json-c/hacks.mk @@ -0,0 +1,15 @@ +# $NetBSD: hacks.mk,v 1.1.2.2 2014/07/17 22:32:01 tron Exp $ + +.if !defined(JSON_C_HACKS_MK) +JSON_C_HACKS_MK= # defined + +# json-c>=0.12 depends on builtin functions which enabled with i486 and +# later with GCC. +# +.include "../../mk/compiler.mk" +.if !empty(MACHINE_PLATFORM:MNetBSD-[0-5].*-i386) && !empty(CC_VERSION:Mgcc-*) +GNU_ARCH.i386= i486 +CFLAGS+= -march=i486 +.endif + +.endif |