1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 19:25:25 +03:00
aports/non-free/compcert/fix-cprepro-options.patch
alpine-mips-patches a795d29df1 non-free/compcert: new aport
Tested with ocaml-4.07.1 only.
2019-03-06 07:52:24 +00:00

47 lines
1.8 KiB
Diff

--- a/configure
+++ b/configure
@@ -224,7 +224,7 @@
cc="${toolprefix}gcc"
clinker="${toolprefix}gcc"
cprepro="${toolprefix}gcc"
- cprepro_options="-std=c99 -U__GNUC__ '-D__REDIRECT(name,proto,alias)=name proto' '-D__REDIRECT_NTH(name,proto,alias)=name proto' -E"
+ cprepro_options="-std=c99 -U__GNUC__ '-D__builtin_constant_p(x)=0' '-D__REDIRECT(name,proto,alias)=name proto' '-D__REDIRECT_NTH(name,proto,alias)=name proto' -E"
libmath="-lm"
system="linux"
fi
@@ -274,7 +274,7 @@
cc="${toolprefix}gcc"
clinker="${toolprefix}gcc"
cprepro="${toolprefix}gcc"
- cprepro_options="-std=c99 -U__GNUC__ -E"
+ cprepro_options="-std=c99 -U__GNUC__ '-D__builtin_constant_p(x)=0' -U__SIZEOF_INT128__ -E"
libmath="-lm"
system="linux"
;;
@@ -320,7 +320,7 @@
clinker="${toolprefix}gcc"
clinker_options="-m32"
cprepro="${toolprefix}gcc"
- cprepro_options="-std=c99 -m32 -U__GNUC__ -E"
+ cprepro_options="-std=c99 -m32 -U__GNUC__ '-D__builtin_constant_p(x)=0' -E"
libmath="-lm"
system="linux"
;;
@@ -380,7 +380,7 @@
clinker="${toolprefix}gcc"
clinker_options="-m64"
cprepro="${toolprefix}gcc"
- cprepro_options="-std=c99 -m64 -U__GNUC__ -E"
+ cprepro_options="-std=c99 -m64 -U__GNUC__ '-D__builtin_constant_p(x)=0' -U__SIZEOF_INT128__ -E"
libmath="-lm"
system="linux"
;;
@@ -423,7 +423,7 @@
clinker="${toolprefix}gcc"
clinker_options="$model_options"
cprepro="${toolprefix}gcc"
- cprepro_options="$model_options -std=c99 -U__GNUC__ -E"
+ cprepro_options="$model_options -std=c99 -U__GNUC__ '-D__builtin_constant_p(x)=0' -U__SIZEOF_INT128__ -E"
libmath="-lm"
system="linux"
fi