openbsd-ports/lang/swi-prolog/patches/patch-packages_ac_swi_c_m4
jasper 021b835a3b - update swi-prolog to 5.10.2
- unbreak on hppa (tested by landry@)

If you are upgrading from an older release (e.g. 5.6.x) it is advised to
read the upgrading guide which is available from
http://www.swi-prolog.org/Upgrade-5.8.html
2010-12-27 16:07:08 +00:00

21 lines
608 B
Plaintext

$OpenBSD: patch-packages_ac_swi_c_m4,v 1.1 2010/12/27 16:07:08 jasper Exp $
Don't override CFLAGS, don't force -O2 (but keep -fno-strict-aliasing).
--- packages/ac_swi_c.m4.orig Thu Dec 23 01:08:41 2010
+++ packages/ac_swi_c.m4 Thu Dec 23 01:08:52 2010
@@ -57,12 +57,11 @@ AC_CHECK_PROGS(ETAGS, etags ctags, ":")
AC_PROG_INSTALL
AC_ISC_POSIX
AC_HEADER_STDC
-CFLAGS="$CMFLAGS"
AC_FUNC_ALLOCA
AC_C_BIGENDIAN
if test ! -z "$GCC"; then
- COFLAGS="${COFLAGS--O2 -fno-strict-aliasing}"
+ COFLAGS="${COFLAGS} -fno-strict-aliasing}"
CWFLAGS="${CWFLAGS--Wall}"
else
COFLAGS="${COFLAGS--O}"