pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/doc/guide/files + FAQ: Why do packages ignore my CFLAGS?



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2c9062608a31
branches:  trunk
changeset: 513120:2c9062608a31
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun May 21 12:23:29 2006 +0000

description:
+ FAQ: Why do packages ignore my CFLAGS?

diffstat:

 doc/guide/files/faq.xml |  27 ++++++++++++++++++++++++++-
 1 files changed, 26 insertions(+), 1 deletions(-)

diffs (39 lines):

diff -r d48c68666de3 -r 2c9062608a31 doc/guide/files/faq.xml
--- a/doc/guide/files/faq.xml   Sun May 21 11:58:25 2006 +0000
+++ b/doc/guide/files/faq.xml   Sun May 21 12:23:29 2006 +0000
@@ -1,4 +1,4 @@
-<!-- $NetBSD: faq.xml,v 1.23 2006/04/22 05:43:51 lukem Exp $ -->
+<!-- $NetBSD: faq.xml,v 1.24 2006/05/21 12:23:29 rillig Exp $ -->
 
 <chapter id="faq"> <?dbhtml filename="faq.html"?>
 <title>Frequently Asked Questions</title>
@@ -576,4 +576,29 @@
 
 </sect1>
 
+<sect1 id="ufaq-cflags">
+<title>Why do some packages ignore my <varname>CFLAGS</varname>?</title>
+
+       <para>When you add your own preferences to the
+       <varname>CFLAGS</varname> variable in your
+       <filename>mk.conf</filename>, these flags are passed in
+       environment variables to the <filename>./configure</filename>
+       scripts and to &man.make.1;. Some package authors ignore the
+       <varname>CFLAGS</varname> from the environment variable by
+       overriding them in the <filename>Makefile</filename>s of their
+       package.</para>
+
+       <para>Currently there is no solution to this problem. If you
+       really need the package to use your <varname>CFLAGS</varname>
+       you should run <command>make patch</command> in the package
+       directory and then inspect any <filename>Makefile</filename> and
+       <filename>Makefile.in</filename> for whether they define
+       <varname>CFLAGS</varname> explicitly. Usually you can remove
+       these lines. But be aware that some <quote>smart</quote>
+       programmers write so bad code that it only works for the
+       specific combination of <varname>CFLAGS</varname> they have
+       chosen.</para>
+
+</sect1>
+
 </chapter>



Home | Main Index | Thread Index | Old Index