No, it should not be linking against libgcc_s in the first place, i.e.:
Code:
[/ports/Obj/data/freebsd/ports/databases/mysql51-server/work/mysql-5.1.26-rc/storage/example/.libs]# objdump -x ha_example.so.0 | grep NEED
NEEDED libcrypt.so.3
NEEDED libm.so.4
NEEDED libstdc++.so.5
This is on a FreeBSD 6 machine btw, mysql51-server builds fine.
Can you post the contents on
/etc/make.conf?