Bug 2033 - Build does not use the content of the $CFLAGS env. variable
Summary: Build does not use the content of the $CFLAGS env. variable
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All AIX
: high normal
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-08 04:30 UTC by Vincent Berger
Modified: 2004-12-08 05:49 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

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.