Easy fix is to send raw LDFLAGS to the make command
Created attachment 88080 [details, diff] Enable --as-needed support
Roy, thanks for the patches. Do you feel like checking them in yourself? As I have very little time at the moment..
Fixed