Subject: gcc 3.3 & '/usr/bin/ld: cannot find -lgcc_eh'
To: None <tech-pkg@netbsd.org>
From: David <abs@mono.org>
List: tech-pkg
Date: 06/08/2003 18:55:34
	mail/imap-uw overrides CFLAGS and LDFLAGS and fails to link with
	gcc3:

[...]
make build EXTRACFLAGS='-O2 -march=athlon -O3 -ffast-math
-fomit-frame-pointer -pipe -I/usr/pkg/include'
EXTRALDFLAGS='-Wl,-R/usr/pkg/lib -L/usr/pkg/lib' EXTRADRIVERS='mbox'
EXTRAAUTHENTICATORS='gss' PASSWDTYPE=std SSLTYPE=unix EXTRASPECIALS=''
BUILDTYPE=neb
`cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o mtest
mtest.o ../c-client/libc-client.la `cat ../c-client/LDFLAGS`
/usr/pkg/gcc-3.3/bin/cc -I../c-client -pipe -O2 -march=athlon -O3
-ffast-math -fomit-frame-pointer -pipe
-I/var/obj/pkg/mail/imap-uw/work/.buildlink/include -o .libs/mtest mtest.o
-Wl,-R/usr/pkg/lib  ../c-client/.libs/libc-client.so
-L/var/obj/pkg/mail/imap-uw/work/.buildlink/lib -lcrypt -lgssapi -lkrb5
-lasn1 -lcom_err -lroken -lssl -lcrypto -Wl,--rpath -Wl,/usr/pkg/lib
/usr/bin/ld: cannot find -lgcc_eh
collect2: ld returned 1 exit status

	Running the 'make build' command by hand (without the buildlink PATH
	setting) causes everything to build correctly.

	Any thoughts as to how to approach this?


-- 
			David Brownlee - abs@mono.org