After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 99816 - configure.in shouldn't hardcode Wall
configure.in shouldn't hardcode Wall
Status: RESOLVED DUPLICATE of bug 89622
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Solaris
: Normal normal
: 0.4.0
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2002-11-28 14:08 UTC by Brian Cameron
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Brian Cameron 2002-11-28 14:08:51 UTC
-Wall and -Werror are gcc specific compiler options and should only be
included if the compiler is gcc.  For example, the glib configure.in
handles this as follows:

--glib example start--

if test "x$GCC" = "xyes"; then
  case " $CFLAGS " in
  *[[\ \    ]]-Wall[[\ \    ]]*) ;;
  *) CFLAGS="$CFLAGS -Wall" ;;
  esac

  if test "x$enable_ansi" = "xyes"; then
    case " $CFLAGS " in
    *[[\ \  ]]-ansi[[\ \    ]]*) ;;
    *) CFLAGS="$CFLAGS -ansi" ;;
    esac

    case " $CFLAGS " in
    *[[\ \  ]]-pedantic[[\ \	]]*) ;;
    *) CFLAGS="$CFLAGS -pedantic" ;;
    esac
  fi
fi
Comment 1 Christian Fredrik Kalager Schaller 2002-11-28 14:31:44 UTC

*** This bug has been marked as a duplicate of 89622 ***