]> granicus.if.org Git - postgresql/blob - src/makefiles/Makefile.freebsd
slight mods required for freebsd (elf vs aout stuff)
[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