Francois Gouget <[EMAIL PROTECTED]> writes:

>    I belive that AC_TRY_LINK always calls $(CC) when attempting to link.
> Knowing that this works, why should we then specify that linking should
> be done with ld?
>    So maybe the above would be the correct fix. Or am I overlooking
> something? 

The -Bxxx look like linker options, so I think the correct fix should
be more like this:

Index: configure.in
===================================================================
RCS file: /opt/cvs-commit/wine/configure.in,v
retrieving revision 1.157
diff -u -r1.157 configure.in
--- configure.in        2000/11/05 20:25:02     1.157
+++ configure.in        2000/11/09 01:14:03
@@ -519,13 +519,13 @@
       AC_CACHE_CHECK("whether we can build a NetBSD dll",
                    ac_cv_c_dll_netbsd,
       [saved_cflags=$CFLAGS
-      CFLAGS="$CFLAGS -fPIC -Bshareable -Bforcearchive"
+      CFLAGS="$CFLAGS -fPIC -Wl,-Bshareable,-Bforcearchive"
       AC_TRY_LINK(,[return 1],ac_cv_c_dll_netbsd="yes",ac_cv_c_dll_netbsd="no")
       CFLAGS=$saved_cflags
       ])
       if test "$ac_cv_c_dll_netbsd" = "yes"
       then
-        LDSHARED="ld -Bshareable -Bforcearchive"
+        LDSHARED="\$(CC) -Wl,-Bshareable,-Bforcearchive"
       fi
     fi
   fi


This should at least cause the test to fail on non-NetBSD platforms,
but I don't know if it will still work on NetBSD. Could someone verify
this?

-- 
Alexandre Julliard
[EMAIL PROTECTED]

Reply via email to