Fix pg_dump bug in the database-level collation patch. "datcollate" and
[PostgreSQL.git] / src / makefiles / Makefile.freebsd
blob201dcd6f4cd7703773fb685b4166b70ba7b9afd1
1 AROPT = cr
3 ifdef ELF_SYSTEM
4 export_dynamic = -Wl,-export-dynamic
5 rpath = -Wl,-R'$(rpathdir)'
6 endif
8 DLSUFFIX = .so
10 CFLAGS_SL = -fPIC -DPIC
12 ifeq ($(findstring i386,$(host_cpu)), i386)
13 allow_nonpic_in_shlib = yes
14 endif
17 %.so: %.o
18 ifdef ELF_SYSTEM
19         $(CC) $(CFLAGS) -shared -o $@ $<
20 else
21         $(LD) $(LDREL) $(LDOUT) $<.obj -x $<
22         @echo building shared object $@
23         @rm -f $@.pic
24         @${AR} cq $@.pic $<.obj
25         ${RANLIB} $@.pic
26         @rm -f $@
27         $(LD) -x -Bshareable -Bforcearchive -o $@ $@.pic
28 endif
30 sqlmansect = 7