Try with LIBADD instead of LDADD.