diff options
author | alpine-mips-patches <info@mobile-stream.com> | 2019-02-22 12:53:47 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2019-03-06 07:52:24 +0000 |
commit | a795d29df148fea64a096ccc8b547b6ed6cf7d25 (patch) | |
tree | 5dfcb72eb96898dfcb406fe77edf72e177383057 /non-free/compcert/fix-cprepro-options.patch | |
parent | 4020a5c2fc3513f6500f049b2597d68cf4658171 (diff) | |
download | aports-a795d29df148fea64a096ccc8b547b6ed6cf7d25.tar.bz2 aports-a795d29df148fea64a096ccc8b547b6ed6cf7d25.tar.xz |
non-free/compcert: new aport
Tested with ocaml-4.07.1 only.
Diffstat (limited to 'non-free/compcert/fix-cprepro-options.patch')
-rw-r--r-- | non-free/compcert/fix-cprepro-options.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/non-free/compcert/fix-cprepro-options.patch b/non-free/compcert/fix-cprepro-options.patch new file mode 100644 index 0000000000..7354b197af --- /dev/null +++ b/non-free/compcert/fix-cprepro-options.patch @@ -0,0 +1,47 @@ +--- 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 |