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

Peter Williams peter at newton.cx
Wed Jan 7 21:46:11 EST 2004

Hi Bernie,

On Wed, 2004-01-07 at 19:52, Bernie Solomon wrote:
> 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)
+       $(LD_SHARED) $(LD_SONAME_FLAG)$(MonoPosixHelperLeaf) -o $(MonoPosixHelper) $(local_objs) $(LOCAL_LDFLAGS)

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.


Peter Williams                          peter at newton.cx

"[Ninjas] are cool; and by cool, I mean totally sweet."
                              -- REAL Ultimate Power

More information about the Mono-devel-list mailing list