Il 15/mag/2015 23:13, "Mark Kettenis" <[email protected]> ha scritto: > > Use $CC to link shared library to make sure crtbeginS.o gets linked in. >
Ok with me Thnx David > Index: Makefile > =================================================================== > RCS file: /cvs/ports/devel/luaprofiler/Makefile,v > retrieving revision 1.6 > diff -u -p -r1.6 Makefile > --- Makefile 30 May 2013 17:03:59 -0000 1.6 > +++ Makefile 15 May 2015 20:57:58 -0000 > @@ -5,7 +5,7 @@ SHARED_ONLY= Yes > COMMENT= time profiler for Lua > > DISTNAME= luaprofiler-2.0.2 > -REVISION= 1 > +REVISION= 2 > CATEGORIES= devel > > HOMEPAGE= http://luaprofiler.luaforge.net/ > Index: patches/patch-Makefile_linux > =================================================================== > RCS file: /cvs/ports/devel/luaprofiler/patches/patch-Makefile_linux,v > retrieving revision 1.1.1.1 > diff -u -p -r1.1.1.1 patch-Makefile_linux > --- patches/patch-Makefile_linux 8 Jul 2010 12:28:57 -0000 1.1.1.1 > +++ patches/patch-Makefile_linux 15 May 2015 20:57:58 -0000 > @@ -1,7 +1,7 @@ > $OpenBSD: patch-Makefile_linux,v 1.1.1.1 2010/07/08 12:28:57 jasper Exp $ > ---- Makefile.linux.orig Mon Jul 5 02:43:01 2010 > -+++ Makefile.linux Mon Jul 5 02:43:50 2010 > -@@ -1,6 +1,6 @@ > +--- Makefile.linux.orig Mon Nov 27 19:32:11 2006 > ++++ Makefile.linux Fri May 15 22:56:19 2015 > +@@ -1,10 +1,10 @@ > -include config.linux > +include ../config.linux > > @@ -10,3 +10,8 @@ $OpenBSD: patch-Makefile_linux,v 1.1.1.1 > > > profiler: $(OBJS) > +- mkdir -p bin && $(LD) -Bshareable -o $(PROFILER_OUTPUT) $(OBJS) > ++ mkdir -p bin && $(CC) -shared -o $(PROFILER_OUTPUT) $(OBJS) > + > + clean: > + rm -f $(PROFILER_OUTPUT) src/*.o >
