Adding LDFLAGS options break configure check for openpty.

Mike Frysinger vapier at
Sat Aug 4 12:40:24 WST 2007

On Friday 03 August 2007, Serge Blais wrote:
> configure:4448:   powerpc-linux-gcc -o conftest -D_REENTRANT -Os
> -fomit-frame-pointer -pipe -mcpu=860 conftest.c -lutil
> -lcrypt -L/home/sblais/dev/trunk/lib -lmyown >&5
> /tmp/ccbdxThZ.o: In function `main':
> conftest.c:(.text+0xc): undefined reference to `openpty'
> collect2: ld returned 1 exit status
> configure:4454: $? = 1

run the same test and see why it fails:
echo 'int main(){return openpty();}' > test.c
powerpc-linux-gcc test.c -lutil
test.c -lutil -L/home/sblais/dev/trunk/lib -lmyown -Wl,--verbose
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : 

More information about the Dropbear mailing list