From a0b7daa129b082c1420366df0ec53af075d0c316 Mon Sep 17 00:00:00 2001 From: Marc G. Fournier Date: Mon, 17 May 1999 04:13:29 +0000 Subject: Apply freebsd specific patches dealign with ELF system from FreeBSD's ports collection ... --- src/makefiles/Makefile.freebsd | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/makefiles') diff --git a/src/makefiles/Makefile.freebsd b/src/makefiles/Makefile.freebsd index fcbcd84de40..7bf42588168 100644 --- a/src/makefiles/Makefile.freebsd +++ b/src/makefiles/Makefile.freebsd @@ -1,13 +1,17 @@ +ifdef ELF_SYSTEM +LDFLAGS+= -export-dynamic +endif + %.so: %.o +ifdef ELF_SYSTEM + $(LD) -x -shared -o $@ $< +else $(LD) -x -r -o $<.obj $< @echo building shared object $@ @rm -f $@.pic @${AR} cq $@.pic `lorder $<.obj | tsort` ${RANLIB} $@.pic @rm -f $@ -ifdef ELF_SYSTEM - $(LD) -x -Bshareable -o $@ $@.pic -else $(LD) -x -Bshareable -Bforcearchive -o $@ $@.pic endif -- cgit v1.2.3