summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-geosciences/grass/files/grass-7.0.1-soname.patch')
-rw-r--r--sci-geosciences/grass/files/grass-7.0.1-soname.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/sci-geosciences/grass/files/grass-7.0.1-soname.patch b/sci-geosciences/grass/files/grass-7.0.1-soname.patch
new file mode 100644
index 000000000000..3f3442cc309d
--- /dev/null
+++ b/sci-geosciences/grass/files/grass-7.0.1-soname.patch
@@ -0,0 +1,26 @@
+Index: aclocal.m4
+===================================================================
+--- aclocal.m4 (revision 66647)
++++ aclocal.m4 (working copy)
+@@ -488,7 +488,7 @@
+ case $host in
+ *-linux-* | *-gnu* | *-kfreebsd*-gnu)
+ SHLIB_CFLAGS="-fPIC"
+- SHLIB_LD_FLAGS=""
++ SHLIB_LD_FLAGS="-Wl,-soname,\$(notdir \$[@])"
+ SHLIB_SUFFIX=".so"
+ SHLIB_LD="${CC} -shared"
+ LDFLAGS="-Wl,--export-dynamic"
+Index: configure
+===================================================================
+--- configure (revision 66647)
++++ configure (working copy)
+@@ -1481,7 +1481,7 @@
+ case $host in
+ *-linux-* | *-gnu* | *-kfreebsd*-gnu)
+ SHLIB_CFLAGS="-fPIC"
+- SHLIB_LD_FLAGS=""
++ SHLIB_LD_FLAGS="-Wl,-soname,\$(notdir \$@)"
+ SHLIB_SUFFIX=".so"
+ SHLIB_LD="${CC} -shared"
+ LDFLAGS="-Wl,--export-dynamic"