]> granicus.if.org Git - graphviz/commitdiff
get rid of -xarch from GD_LDFLAGS as it breaks gcc
authorellson <devnull@localhost>
Tue, 31 May 2011 12:26:13 +0000 (12:26 +0000)
committerellson <devnull@localhost>
Tue, 31 May 2011 12:26:13 +0000 (12:26 +0000)
configure.ac

index 5397be145b57dcc770b31a346aa6f52f435d2a41..dd875ca4cce3c48cf6fb4d8c712b647dbd85329d 100644 (file)
@@ -2538,7 +2538,7 @@ else
       AC_PATH_PROG(GDLIB_CONFIG,gdlib-config)
       if test -n "$GDLIB_CONFIG"; then
         GD_INCLUDES=`$GDLIB_CONFIG --includes`
-        GD_LDFLAGS=`$GDLIB_CONFIG --ldflags | sed 's/-xarch=386 //'`
+        GD_LDFLAGS=`$GDLIB_CONFIG --ldflags | sed 's/-xarch=[^ ]* //'`
         GD_LIBS=`$GDLIB_CONFIG --libs`
         GD_MAJORVERSION=`$GDLIB_CONFIG --majorversion`
         GD_MINORVERSION=`$GDLIB_CONFIG --minorversion`