diff options
author | rillig <rillig@pkgsrc.org> | 2020-02-09 00:44:25 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2020-02-09 00:44:25 +0000 |
commit | df062fb50f5f813d7d457b4a2d7e30fafb391646 (patch) | |
tree | 4983ebcdd0686c851dd8a656930e68fc5ef9333a /doc/guide | |
parent | 13b709b0488f0b58885e4ea62cfb456d88550904 (diff) | |
download | pkgsrc-df062fb50f5f813d7d457b4a2d7e30fafb391646.tar.gz |
doc/guide: explain how to track down where the CFLAGS are ignored
Diffstat (limited to 'doc/guide')
-rw-r--r-- | doc/guide/files/faq.xml | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/doc/guide/files/faq.xml b/doc/guide/files/faq.xml index d1166f6bf1d..990574f1daf 100644 --- a/doc/guide/files/faq.xml +++ b/doc/guide/files/faq.xml @@ -1,4 +1,4 @@ -<!-- $NetBSD: faq.xml,v 1.55 2017/01/09 04:03:34 sevan Exp $ --> +<!-- $NetBSD: faq.xml,v 1.56 2020/02/09 00:44:25 rillig Exp $ --> <chapter id="faq"> <?dbhtml filename="faq.html"?> <title>Frequently Asked Questions</title> @@ -558,6 +558,26 @@ perform a security check before building any package.</para> specific combination of <varname>CFLAGS</varname> they have chosen.</para> +<para>To find out where the CFLAGS are ignored, add the following lines to &mk.conf;:</para> + +<programlisting> +CPPFLAGS+= -Dpkgsrc___CPPFLAGS +CFLAGS+= -Dpkgsrc___CFLAGS +CXXFLAGS+= -Dpkgsrc___CXXFLAGS +</programlisting> + +<para>Then run <command>bmake show-all-configure show-all-build</command> +to see whether the above flags are passed to the actual build +commands in general.</para> + +<para>To find out whether the flags are passed to individual compiler +commands, have a look at the file <filename>work/.work.log</filename>. In +most cases, the flags from the original command lines (the lines starting +with <literal>[*]</literal>) are passed unmodified to the actual compiler +(the lines starting with <literal><.></literal>). If the flag is +missing from the actual compiler command, it must have been removed by +the <link linkend="build.wrapper">pkgsrc compiler wrappers</link>.</para> + </sect1> <sect1 id="ufaq-fail"> |