Correct build with gcc 4.1.2 - lightning.git - Portable just-in-time compiler library

index : lightning.git
Portable just-in-time compiler library
summary refs log tree commit diff
diff options
context:
space:
mode:
authorpcpa <paulo.cesar.pereira.de.andrade@gmail.com>2023年04月11日 11:08:44 -0300
committerpcpa <paulo.cesar.pereira.de.andrade@gmail.com>2023年04月11日 11:08:44 -0300
commitd5499f8f1b521e66b097878f7362fe0ad7ab60bd (patch)
tree25f801922877df5db79005ba95a2ad5ee91e109f
parent394d3c828154fcf0e7ec1bde175167793c4fe559 (diff)
downloadlightning-d5499f8f1b521e66b097878f7362fe0ad7ab60bd.tar.gz
Correct build with gcc 4.1.2
Diffstat
-rw-r--r--check/Makefile.am 6
1 files changed, 6 insertions, 0 deletions
diff --git a/check/Makefile.am b/check/Makefile.am
index 37a4d9c..a35156e 100644
--- a/check/Makefile.am
+++ b/check/Makefile.am
@@ -53,8 +53,14 @@ protect_SOURCES = protect.c
riprel_LDADD = $(top_builddir)/lib/liblightning.la -lm $(SHLIB)
riprel_SOURCES = riprel.c
+# Actually, gcc 4.1.2 does not like unknown -Wno-option and errors out;
+# better to just have warnings.
+if cpu_ia64
+cbit_CFLAGS = $(AM_CFLAGS) -fwrapv
+else
cbit_CFLAGS = $(AM_CFLAGS) -fwrapv -Wno-overflow -Wno-integer-overflow \
-Wno-shift-count-overflow
+endif
cbit_LDADD = $(top_builddir)/lib/liblightning.la -lm $(SHLIB)
cbit_SOURCES = cbit.c
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月27日 21:23:30 +0000

AltStyle によって変換されたページ (->オリジナル) /