[Mono-devel-list] Native code in mcs & Mono.Posix

Miguel de Icaza miguel at ximian.com
Wed Jan 7 22:19:40 EST 2004


> > Well I decided to come up with some tweaks to the current system so I can
> > build via a config.make alone. This is what I have come up with so far.
> > The -soname handling is a little ugly (actually I do wonder why this is
> > .dll.so as opposed to plain .so as the DllImport has no extension). I
> > haven't tried this on anything other than HPUX as yet... (Win32 probably
> > needs some work) Comments?
> ..
> +ifeq ($(LD_SONAME_FLAG),)
> +       $(LD_SHARED) -o $(MonoPosixHelper) $(local_objs) $(LOCAL_LDFLAGS)
> +else
> +       $(LD_SHARED) $(LD_SONAME_FLAG)$(MonoPosixHelperLeaf) -o $(MonoPosixHelper) $(local_objs) $(LOCAL_LDFLAGS)
> +endif
> Maybe just set LD_SONAME_FLAG to "-o " if not defined elsewhere?
> Anyway, if you think this patch will be useful, there's nothing wrong
> with it, but I think you're right in that there's a larger issue to be
> addressed here. My feeling is that it just doesn't make sense to compile
> C shared libraries without using libtool and autoconf, so something
> should be changed around in the current setup.

Since we already require libtool to compile mono, we might just invoke
libtool from these Makefiles.


More information about the Mono-devel-list mailing list