pkgsrc/cad/ng-spice/patches/patch-ad
dmcmahill e5b54ba7a8 Obey CFLAGS. In particular this lets the default -O2 for pmax get used
which fixes compile problems noted in PR pkg/16160 by
Daniel Senderowicz <daniel@bicho.SynchroDS.COM>.

Thanks to Simon Burge for helping on this.
2002-04-04 01:24:58 +00:00

13 lines
359 B
Text

$NetBSD: patch-ad,v 1.3 2002/04/04 01:24:58 dmcmahill Exp $
only remove -g not all CFLAGS!!
--- configure.orig Wed Apr 3 03:26:44 2002
+++ configure Wed Apr 3 09:29:20 2002
@@ -1311,5 +1311,5 @@
if test "$enable_debug" = "no"; then
echo "configure: warning: Removing debugging option!" 1>&2
- CFLAGS=" "
+ CFLAGS="`echo $CFLAGS | sed 's;-g;;g'`"
fi