Martin Michlmayr <[EMAIL PROTECTED]> writes:

> conf.log says:
> configure:7846: gcc -o conftest -g -O2 -fstack-protector   conftest.c  >&5
> conftest.c:1: warning: -fstack-protector not supported for this target
> /usr/bin/ld: cannot find -lssp_nonshared
> collect2: ld returned 1 exit status

This appears to be a bug in the GCC_STACK_PROTECT_CC macro.  It
assumes that if a compile with -fstack-protector succeeds, then
it can use it.  However, it doesn't try to link, and it appears
that on this MIPS target -fstack-protector succeeds in compiling
(with a warning) and fails in linking.  (This might actually be a
GCC bug: why try to link with -lssp_nonshared if you don't
support stack protection?)

I think that using AC_TRY_LINK in place of AC_TRY_COMPILE (within
GCC_STACK_PROTECT_CC) might solve the problem.  I haven't tried
it though.
-- 
"The sound of peacocks being shredded can't possibly be
 any worse than the sound of peacocks not being shredded."
Tanuki the Raccoon-dog in the Monastery


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to