[Bug 676846] New: CFLAGS are reset when compiling with --enable-gcov.
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Fri May 25 14:24:49 PDT 2012
https://bugzilla.gnome.org/show_bug.cgi?id=676846
GStreamer | common | git
Summary: CFLAGS are reset when compiling with --enable-gcov.
Classification: Platform
Product: GStreamer
Version: git
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: common
AssignedTo: gstreamer-bugs at lists.freedesktop.org
ReportedBy: sebras at hotmail.com
QAContact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
If I try to compile my own gst-plugin and set/unset
features in, or include headers by setting compiler
flags in CFLAGS when compiling like so:
CFLAGS="-DUSE_COOL_FEATURE -I/home/sebrn/src/downstream/include" make
Then the plugin will compile successfully. If I attempt
to do the same while compiling with gcov enabled (by
suppling --enable-gcov to configure) it will fail.
This means that it is impossible to override or append
new compiler flags using CFLAGS from the command-line.
The reason is that in the AG_GST_ARG_GCOV function in
common/m4/gst-args.m4 reset the value of CFLAGS (and
others) instead of simply appending -O0. Glib handles
this by appending -O0, and therefore I propose that
GStreamer do the same. Then CFLAGS can again be used
to override/append compiler flags if so desired.
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list