@@ -125,7 +125,9 @@ while (<SOVERSIONS>) {
next if ($build_mathvec == 0 && $name eq "mvec");
if ($name ne "nss_ldap" && $name ne "db1"
&& $name ne "thread_db"
- && $name ne "nss_test1" && $name ne "libgcc_s") {
+ && $name ne "nss_test1"
+ && $name ne "nss_test2"
+ && $name ne "libgcc_s") {
$link_libs .= " -l$name";
$versions{$name} = $version;
}
@@ -156,7 +158,7 @@ int main(void) {
';
close PRG;
-open GCC, "$CC $dir/test-prg$$.c $link_libs -o $dir/test-prg$$ 2>&1 |"
+open GCC, "$CC $dir/test-prg$$.c -Wl,-no-as-needed $link_libs -o $dir/test-prg$$ 2>&1 |"
or die ("Couldn't execute $CC!");
while (<GCC>) {