Linker warnings on MacOS X
Tim Potter
tpot at samba.org
Sun Oct 21 23:44:01 GMT 2001
The DJ writes:
> >> Could this flag be added to the linker command if samba builds on Darwin?
> >> It isn't effecting the use of samba, it will run just fine, but it might be
> >> nice to include it in future releases.
> >
> > So what is the output of config.guess on the various Mac
> > platforms? Does Samba even compile on anything other than
> > darwin?
>
> On MacOS X 10.1, MacOS X 10.1 Server and Darwin 1.4 it is
> powerpc-apple-darwin1.4
Right - you might have to add something like this to configure.in:
*** configure.in 20 Oct 2001 06:27:48 -0000 1.236
--- configure.in 22 Oct 2001 06:38:39 -0000
***************
*** 706,711 ****
--- 706,715 ----
PICFLAG="+z"
fi
;;
+ *darwin*)
+ AC_DEFINE(DARWIN)
+ LDFLAGS="-flat_namespace"
+ ;;
*qnx*) AC_DEFINE(QNX);;
*osf*) AC_DEFINE(OSF1)
BLDSHARED="true"
I haven't tried this (no access to a darwin machine) so you may
have to fiddle with it yourself to get it to actually work.
Tim.
More information about the samba-technical
mailing list