[MacPorts] #36207: ld fails to link a test executable in ./configure