]> granicus.if.org Git - postgresql/blob - src/makefiles/Makefile.hpux
Install the SQL command man pages into a section appropriate for each
[postgresql] / src / makefiles / Makefile.hpux
1 # HP-UX 10 has a select() in libcurses, so we need to get the libc version,
2 # which we do by linking -lc before -lcurses.  (Unfortunately we can't
3 # just not use libcurses.)  This also ensures that we get the POSIX signal
4 # routines in libc, not the BSD-like ones in libBSD.
5 LIBS := -lc $(LIBS)
6
7 # On the other hand, if we don't have POSIX signals, we need to use the
8 # libBSD signal routines.  (HPUX 9 and early HPUX 10 releases don't have
9 # POSIX signals.)  Make sure libBSD comes before libc in that case.
10 ifeq ($(HAVE_POSIX_SIGNALS), no)
11    LIBS := -lBSD $(LIBS)
12 endif
13
14 # On HPUX 9, rint() is provided only in the PA1.1 version of libm.
15 # If configure found it necessary to link against /lib/pa1.1 to find rint,
16 # add -L command to make that happen.
17 # (CAUTION: you need PHSS_4630 to have a working version of rint() on 9!)
18 ifneq ($(HPUXMATHLIB),)
19    LDFLAGS:= -L/lib/pa1.1 $(LDFLAGS)
20 endif
21
22 # Embed 'libdir' as the shared library search path so that the executables
23 # don't need SHLIB_PATH to be set.  (We do not observe the --enable-rpath
24 # switch here because you'd get rather bizarre behavior if you leave this
25 # option off.)
26 LDFLAGS += -Wl,+b -Wl,$(libdir)
27
28 # catch null pointer dereferences
29 LDFLAGS += -Wl,-z
30
31 # set up appropriate options for shared library builds
32 export_dynamic = -Wl,-E
33 shlib_symbolic = -Bsymbolic
34
35 INSTALL_SHLIB_OPTS = -m 555
36
37 AROPT = crs
38
39 DLSUFFIX = .sl
40 ifeq ($(GCC), yes)
41 CFLAGS_SL = -fPIC
42 else
43 CFLAGS_SL = +z
44 endif
45 ifeq ($(GXX), yes)
46 CXXFLAGS_SL = -fPIC
47 else
48 CXXFLAGS_SL = +z
49 endif
50
51 # Rule for building shared libs (currently used only for regression test
52 # shlib ... should go away, since this is not really enough knowledge)
53 %.sl: %.o
54         $(LD) -b -o $@ $<
55
56 sqlmansect = 5