1 # If we don't have POSIX signals, we need to use the libBSD signal routines.
2 # (HPUX 9 and early HPUX 10 releases don't have POSIX signals.) Link in
3 # libBSD only in that case.
4 ifeq ($(HAVE_POSIX_SIGNALS), no)
8 # Using X/Open Networking Interfaces requires to link with libxnet.
9 # Without specifying this, bind(), getpeername() and so on don't work
10 # correctly in the LP64 data model.
11 LIBS := -lxnet $(LIBS)
13 # Set up rpath so that the executables don't need SHLIB_PATH to be set.
14 # (Note: --disable-rpath is a really bad idea on this platform...)
15 ifeq ($(with_gnu_ld), yes)
16 rpath = -Wl,-rpath -Wl,'$(rpathdir)'
18 rpath = -Wl,+b -Wl,'$(rpathdir)'
21 # catch null pointer dereferences
22 ifeq ($(with_gnu_ld), yes)
23 # XXX what to put here?
28 # set up appropriate options for shared library builds
29 export_dynamic = -Wl,-E
31 INSTALL_SHLIB_OPTS = -m 555
35 ifeq ($(host_cpu), ia64)
46 # Rule for building a shared library from a single .o file
49 ifeq ($(with_gnu_ld), yes)
50 $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -shared -o $@ $< `$(CC) $(LDFLAGS) -print-libgcc-file-name`
52 $(LD) -b -o $@ $< `$(CC) $(LDFLAGS) -print-libgcc-file-name`
55 ifeq ($(with_gnu_ld), yes)
56 $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -shared -o $@ $<