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.
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)
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)
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
26 LDFLAGS += -Wl,+b -Wl,$(libdir)
28 # catch null pointer dereferences
31 # set up appropriate options for shared library builds
32 export_dynamic = -Wl,-E
33 shlib_symbolic = -Bsymbolic
35 INSTALL_SHLIB_OPTS = -m 555
51 # Rule for building shared libs (currently used only for regression test
52 # shlib ... should go away, since this is not really enough knowledge)