Subject: buildlink, gcc3 and png
To: None <>
From: David Brownlee <>
List: tech-pkg
Date: 01/15/2004 17:49:41
	graphics/png fails to compile under 1.6.x using gcc3.

/var/obj/pkg/graphics/png/work/.buildlink/bin/libtool  --mode=link
/usr/pkg/gcc-3.3/bin/gcc -o pngtest -O2 -march=pentiumpro
-finline-functions -ffast-math -fomit-frame-pointer -pipe -I/usr/include
pngtest.o  -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -lz -lm
/usr/pkg/gcc-3.3/bin/gcc -o .libs/pngtest -O2 -march=pentiumpro
-finline-functions -ffast-math -fomit-frame-pointer -pipe pngtest.o
-Wl,-R/usr/pkg/lib  ./.libs/
-L/var/obj/pkg/graphics/png/work/.buildlink/lib -lz -lm -Wl,--rpath
/usr/bin/ld: cannot find -lgcc_eh
collect2: ld returned 1 exit status

	This can be rectified by linking libgcc_eh.a into

	On an i386 box this would be

	What would the correct fix be for this?

			   David Brownlee --