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