]> granicus.if.org Git - postgresql/blob - src/makefiles/Makefile.solaris
Define integer limits independently from the system definitions.
[postgresql] / src / makefiles / Makefile.solaris
1 # src/makefiles/Makefile.solaris
2
3 AROPT = crs
4
5 ifeq ($(with_gnu_ld), yes)
6 export_dynamic = -Wl,-E
7 rpath = -Wl,-rpath,'$(rpathdir)'
8 else
9 rpath = -Wl,-R'$(rpathdir)'
10 endif
11
12 DLSUFFIX = .so
13 ifeq ($(GCC), yes)
14 CFLAGS_SL = -fPIC
15 else
16 CFLAGS_SL = -KPIC
17 endif
18
19 # Rule for building a shared library from a single .o file
20 %.so: %.o
21 ifeq ($(GCC), yes)
22         $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -shared -o $@ $<
23 else
24         $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -G -o $@ $<
25 endif
26
27 sqlmansect = 5sql