Samba4 on Windows
Dan Shearer
dan at shearer.org
Fri Sep 14 14:15:33 GMT 2007
On Fri, Sep 14, 2007 at 09:02:53PM +0930, Dan Shearer wrote:
> Samba4 will compile under Cygwin (no, Cygwin is not ideal) without
> modification, but also without shared library support. It just works.
>
> I'm looking at shared library support, but just for the record the instructions
> are attached.
Shared libraries get built if you do the attached (incidentally Jelmer
there is a confusing error message fixed in check_ld.m4.)
I need to do something special with soname so the results make sense for
Windows, I'll look in libtool first.
--
Dan Shearer
dan at shearer.org
-------------- next part --------------
Index: build/m4/check_ld.m4
===================================================================
--- build/m4/check_ld.m4 (revision 25126)
+++ build/m4/check_ld.m4 (working copy)
@@ -151,6 +151,12 @@
SHLD_FLAGS="-bundle -flat_namespace -undefined suppress"
SHLIBEXT="dylib"
;;
+ *cygwin*)
+ BLDSHARED="true"
+ SHLIBEXT="DLL"
+ LDFLAGS="$LDFLAGS -no-undefined"
+ SHLD_FLAGS="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import"
+ SONAMEFLAG="-Wl,-soname="
esac
AC_MSG_RESULT($BLDSHARED)
@@ -168,7 +174,7 @@
AC_MSG_RESULT([$STLD_FLAGS])
AC_ARG_ENABLE(shared,
-[ --disable-shared Disable testing for building shared libraries],
+[ --disable-shared Do not test for or build shared libraries],
[],[enable_shared=yes])
if test x"$enable_shared" = x"no" -o x"$enable_shared" = x"false"; then
More information about the samba-technical
mailing list