From 3e65ff5d9b0cb9631c788a9dd8d021dad13d6546 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 25 Oct 2014 00:35:19 +0200 Subject: [PATCH] Really support SunOS for sure --- doc/scripts/pkgconfig.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/scripts/pkgconfig.sh b/doc/scripts/pkgconfig.sh index 5482795..bc2bebc 100755 --- a/doc/scripts/pkgconfig.sh +++ b/doc/scripts/pkgconfig.sh @@ -129,9 +129,12 @@ while [ $# -gt 0 ]; do if [ "$PREFIX" != "/usr" ]; then RPATH="-Wl,-rpath-link,\${libdir} -Wl,-rpath,\${libdir}" case $(uname -s) in - Darwin|SunOS) + Darwin) RPATH="-Wl,-rpath,\${libdir}" ;; + SunOS) + RPATH="-Wl,-R\${libdir}" + ;; esac fi