Bug 2033

Summary: Build does not use the content of the $CFLAGS env. variable
Product: shared-mime-info Reporter: Vincent Berger <vincent.berger>
Component: generalAssignee: Jonathan Blandford <jrb>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high CC: jean-pierre.dion
Version: unspecified   
Hardware: All   
OS: AIX   
Whiteboard:
i915 platform: i915 features:

Description Vincent Berger 2004-12-08 04:30:13 UTC
I tried to build shared-mime-info version 0.15 on my AIX system.
I used the $CFLAGS variable to specify a specific compiler option (I use the IBM
xlc compiler version 6.0).

It looks like the content of the variable is used in the configure script but is
not used in the Makefile.am file.

I made the following patch to change it but I'm not sure this is the way you'd
like to do it :

---------- PATCH FOLLOW --------------------
--- Makefile.am.old     2004-12-08 13:14:23.000000000 +0100
+++ Makefile.am 2004-11-08 16:48:32.000000000 +0100
@@ -25,7 +25,7 @@

 CLEANFILES = intltool-extract intltool-merge intltool-update freedesktop.org.xml

-CFLAGS = $(ALL_CFLAGS)
+CFLAGS = $(ALL_CFLAGS) @CFLAGS@
 LDFLAGS = $(ALL_LIBS)

 pkgconfigdir = $(libdir)/pkgconfig
----------------- END OF PATCH -------------------

What do you think about the problem and the patch ?

Regards,

Vincent.
Comment 1 Christophe Fergeau 2004-12-08 13:57:04 UTC
Fixed in CVS, I used a different fix though: instead of setting CFLAGS in
Makefile.am, I set update_mime_database_CFLAGS.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.