]> granicus.if.org Git - postgresql/blob - src/makefiles/Makefile.freebsd
Separate -Wl,-E or equivalent into separate make variable, since it's only
[postgresql] / src / makefiles / Makefile.freebsd
1 ifdef ELF_SYSTEM
2 export_dynamic = -export-dynamic
3 endif
4
5 %.so: %.o
6 ifdef ELF_SYSTEM
7         $(LD) -x -shared -o $@ $<
8 else
9         $(LD) $(LDREL) $(LDOUT) $<.obj -x $<
10         @echo building shared object $@
11         @rm -f $@.pic
12         @${AR} cq $@.pic `lorder $<.obj | tsort`
13         ${RANLIB} $@.pic
14         @rm -f $@
15         $(LD) -x -Bshareable -Bforcearchive -o $@ $@.pic
16 endif
17