check --whole-archive is supported before using it
authorTony Cook <tony@develop-help.com>
Fri, 8 Apr 2011 14:05:24 +0000 (00:05 +1000)
committerTony Cook <tony@develop-help.com>
Wed, 13 Apr 2011 06:16:57 +0000 (16:16 +1000)
commit673d8593b7ef274dadbfff97fd641e3c563fc716
treec0dcfe94ebab920f71b0a18d527e23a83595dd84
parent9645299c5cba107a7c8cb0abd6b23360d3df6b59
check --whole-archive is supported before using it

netbsd for pre 4.6 gcc requires --whole-archive to build shared
libraries, but this is rejected and not required in 4.6.0.

Simply changing the option to -Wl,--whole-archive works on gcc 4.6.0
but fails for the system cc on NetBSD 5.1/x64.
hints/netbsd.sh