[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sun cc -pedantic
From: |
Peter Bunclark |
Subject: |
sun cc -pedantic |
Date: |
Wed, 9 Jan 2008 12:37:11 +0000 (GMT) |
Hi AutoConf,
I had 3rd-part software configure fail on Solaris with
"sizeof(char)". It turns out that they include -pedantic; the -pedantic
check tests that cc -pedantic returns without error. The sun compiler can
legally use cc -p -e dantic which returns without error causes no
executable to be formed.
Later, the sizeof(char) test tries to compile with cc -pedantic and fails.
If I hack the configure script just after the -pedantic test:
try_link="`$CC -pedantic -o conftest$ac_exeext \
conftest.$ac_ext 2>&1`"
try_link=1
if test -z "$try_link"; then
it runs through without problems.
Can I pin this one on you?
Cheers
Peter.
- sun cc -pedantic,
Peter Bunclark <=