gen-params problem
SXTHREE
sxthree@penfeld.tls.mms.fr
Tue Apr 21 06:52:00 GMT 1998
While checking for the availability of __printf_fp,
gen-params expects the linker to return an error
while trying to link a program using __printf_fp
if it is undefined.
Since some OSes do not perform a final link (do not
produce an executable, but instead an object that may
still contain relocations) we should not rely on that
behaviour.
Since when _G_HAVE_PRINTF_FP is defined, printf.h
is included (in iostream.cc), we should check for
the presence of this file.
Following patch works for me:
diff gen-params.old gen-params
707,712c707
< cat >dummy.c <<EOF
< int main()
< {
< return __printf_fp ();
< }
< EOF
---
> echo '#include <printf.h>' > dummy.c
FM
More information about the Gcc
mailing list