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
# Using X/Open Networking Interfaces requires to link with libxnet.
15
# Without specifying this, bind(), getpeername() and so on don't work
16
# correctly in the LP64 data model.
17
LIBS := -lxnet $(LIBS)
19
# Set up rpath so that the executables don't need SHLIB_PATH to be set.
20
# (Note: --disable-rpath is a really bad idea on this platform...)
21
ifeq ($(with_gnu_ld), yes)
22
rpath = -Wl,-rpath -Wl,$(rpathdir)
24
rpath = -Wl,+b -Wl,$(rpathdir)
27
# catch null pointer dereferences
28
ifeq ($(with_gnu_ld), yes)
29
# XXX what to put here?
34
# set up appropriate options for shared library builds
35
export_dynamic = -Wl,-E
37
INSTALL_SHLIB_OPTS = -m 555
41
ifeq ($(host_cpu), ia64)
52
# Rule for building shared libs (currently used only for regression test
53
# shlib ... should go away, since this is not really enough knowledge)
56
ifeq ($(with_gnu_ld), yes)
57
$(CC) $(LDFLAGS) -shared -o $@ $< `$(CC) $(LDFLAGS) -print-libgcc-file-name`
59
$(LD) -b -o $@ $< `$(CC) $(LDFLAGS) -print-libgcc-file-name`
62
ifeq ($(with_gnu_ld), yes)
63
$(CC) $(LDFLAGS) -shared -o $@ $<