summaryrefslogtreecommitdiff
path: root/src/makefiles/Makefile.solaris
diff options
context:
space:
mode:
authorPeter Eisentraut2000-10-27 23:59:39 +0000
committerPeter Eisentraut2000-10-27 23:59:39 +0000
commit6707ede8134a3809409364f3cd3d0c6ca2bbfb7d (patch)
tree66fe6873489f5999d5d0bf2c1fc553b3e1f25ec3 /src/makefiles/Makefile.solaris
parent81024e7d80827620ba4d71e3b5440f8cb43d2652 (diff)
Make use of system-specific linker option to embed shared library search
path into executables and shared libraries (-rpath or -R for most). Can be disabled with --disable-rpath, since some binary packaging standards do not like this option.
Diffstat (limited to 'src/makefiles/Makefile.solaris')
-rw-r--r--src/makefiles/Makefile.solaris6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/makefiles/Makefile.solaris b/src/makefiles/Makefile.solaris
index 8c08f79e038..cf064500627 100644
--- a/src/makefiles/Makefile.solaris
+++ b/src/makefiles/Makefile.solaris
@@ -1,11 +1,15 @@
-# $Header: /cvsroot/pgsql/src/makefiles/Makefile.solaris,v 1.3 2000/10/21 22:36:13 petere Exp $
+# $Header: /cvsroot/pgsql/src/makefiles/Makefile.solaris,v 1.4 2000/10/27 23:59:39 petere Exp $
AROPT = crs
ifeq ($(with_gnu_ld), yes)
export_dynamic = -Wl,-E
+rpath = -Wl,-rpath,$(libdir)
+else
+rpath = -Wl,-R$(libdir)
endif
+
DLSUFFIX = .so
ifeq ($(GCC), yes)
CFLAGS_SL = -fPIC