summaryrefslogtreecommitdiff
path: root/chat/ircu/patches/patch-ah
blob: f4cf84a82f59d14fe79e794f0ab315e52f8ab92f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-ah,v 1.1 2005/05/12 08:32:51 rillig Exp $

Strip debugging CFLAGS correctly. Has been reported upstream.

--- configure.orig	Sat Sep 18 04:17:45 2004
+++ configure	Thu May 12 09:56:30 2005
@@ -2370,7 +2370,7 @@ if test x"$CFLAGS" != x; then
 fi
 if test x"$CFLAGS" != x; then
     unet_old_cflags=$CFLAGS
-    CFLAGS=`echo "$CFLAGS" | sed -e 's/-g//g'`
+    CFLAGS=`echo "$CFLAGS" | sed -e 's/-g.*//g'`
 fi
 if test x"$CFLAGS" != x"$unet_old_cflags"; then
     # If -g was already there, force symbols to be enabled