See attached build log.
(Please do not complain about the need for looking at the build log until you can provide an easy way to open bugs with the correct data picked out of a tinderbox log. Thanks.)
Created attachment 245975 [details]
Created attachment 246025 [details, diff]
(In reply to comment #2)
> Created an attachment (id=246025) [details]
> respects LDFLAGS
Ross, while your patch does actually work, I preferred to fix the package Makefile as it was somewhat broken. This way CFLAGS and LDFLAGS can stay separated.