summaryrefslogtreecommitdiff
path: root/src/makefiles/Makefile.freebsd
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1999-05-17 04:13:29 +0000
committerMarc G. Fournier <scrappy@hub.org>1999-05-17 04:13:29 +0000
commita0b7daa129b082c1420366df0ec53af075d0c316 (patch)
treeec468eae2910dfa2b11f1861e74477f147765136 /src/makefiles/Makefile.freebsd
parent61f618e73e6d82644221fe0b09d4eb343f096b67 (diff)
downloadpostgresql-a0b7daa129b082c1420366df0ec53af075d0c316.tar.gz
Apply freebsd specific patches dealign with ELF system from FreeBSD's
ports collection ...
Diffstat (limited to 'src/makefiles/Makefile.freebsd')
-rw-r--r--src/makefiles/Makefile.freebsd10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/makefiles/Makefile.freebsd b/src/makefiles/Makefile.freebsd
index fcbcd84de4..7bf4258816 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