]> granicus.if.org Git - postgresql/blob - src/makefiles/Makefile.linux
Fix insufficiently-portable regression test case.
[postgresql] / src / makefiles / Makefile.linux
1 AROPT = crs
2 export_dynamic = -Wl,-E
3 # Use --enable-new-dtags to generate DT_RUNPATH instead of DT_RPATH.
4 # This allows LD_LIBRARY_PATH to still work when needed.
5 rpath = -Wl,-rpath,'$(rpathdir)',--enable-new-dtags
6 DLSUFFIX = .so
7
8 ifeq "$(findstring sparc,$(host_cpu))" "sparc"
9 CFLAGS_SL = -fPIC
10 else
11 CFLAGS_SL = -fpic
12 endif
13
14 # Rule for building a shared library from a single .o file
15 %.so: %.o
16         $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -shared -o $@ $<