1 # Using X/Open Networking Interfaces requires to link with libxnet.
2 # Without specifying this, bind(), getpeername() and so on don't work
3 # correctly in the LP64 data model.
6 # Set up rpath so that the executables don't need SHLIB_PATH to be set.
7 # (Note: --disable-rpath is a really bad idea on this platform...)
8 ifeq ($(with_gnu_ld), yes)
9 rpath = -Wl,-rpath -Wl,'$(rpathdir)'
11 rpath = -Wl,+b -Wl,'$(rpathdir)'
14 # catch null pointer dereferences
15 ifeq ($(with_gnu_ld), yes)
16 # XXX what to put here?
21 # set up appropriate options for shared library builds
22 export_dynamic = -Wl,-E
24 INSTALL_SHLIB_OPTS = -m 555
28 ifeq ($(host_cpu), ia64)
34 # env var name to use in place of LD_LIBRARY_PATH
35 ld_library_path_var = SHLIB_PATH
37 # Rule for building a shared library from a single .o file
40 ifeq ($(with_gnu_ld), yes)
41 $(CC) $(CFLAGS) $< $(LDFLAGS) $(LDFLAGS_SL) -shared -o $@ `$(CC) $(LDFLAGS) -print-libgcc-file-name`
43 $(LD) -b -o $@ $< `$(CC) $(LDFLAGS) -print-libgcc-file-name`
46 ifeq ($(with_gnu_ld), yes)
47 $(CC) $(CFLAGS) $< $(LDFLAGS) $(LDFLAGS_SL) -shared -o $@