]> granicus.if.org Git - postgresql/blob - src/makefiles/Makefile.freebsd
Okay, this shoudl provide a fix for the freebsd problem...
[postgresql] / src / makefiles / Makefile.freebsd
1 %.so: %.o
2         $(LD) -x -r -o $<.obj $<
3         @echo building shared object $@
4         @rm -f $@.pic
5         @${AR} cq $@.pic `lorder $<.obj | tsort`
6         ${RANLIB} $@.pic
7         @rm -f $@
8         ifdef ELF_SYSTEM
9                 $(LD) -x -Bshareable -o $@ $@.pic
10         else
11                 $(LD) -x -Bshareable -Bforcearchive -o $@ $@.pic
12         endif
13