diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2020-02-25 16:17:57 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2020-02-25 16:17:57 +0000 |
commit | f35d0428004edf06ea7f5bac1d610fa668ad6767 (patch) | |
tree | d5fd841ef51a35eb9b4fcac967d5106e31a45e0a /TODO | |
parent | 41d115912607cf71dd6005f7ad059ac1c4c22817 (diff) | |
download | mpfr-f35d0428004edf06ea7f5bac1d610fa668ad6767.tar.gz |
[TODO] Added item on GNU Automake and -I options.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13722 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'TODO')
-rw-r--r-- | TODO | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -708,3 +708,18 @@ Table of contents: couple of places already. Arrays of chars are not much fun. - use https://gcc.gnu.org/viewcvs/gcc/trunk/config/stdint.m4 for mpfr-gmp.h + +- By default, GNU Automake adds -I options to local directories, with + the side effect that these directories have the precedence to search + for system headers (#include <...>). This may make the build fail if + a C implementation includes a file that has the same name as one used + in such a directory. + For instance, if one adds an empty file "src/bits/types.h", then the + MPFR build fails under Linux because /usr/include/stdio.h has + #include <bits/types.h> + Possible workaround: + * disable the default -I options with nostdinc as documented in + the Automake manual; + * have a rule that copies the needed files ("mpfr.h" or they should + be prefixed with "mpfr-") to $(top_builddir)/include; + * use "-I$(top_builddir)/include". |