File cfitsio.patch of Package cfitsio

diff -Naur cfitsio.orig/configure cfitsio/configure
--- cfitsio.orig/configure	2013-03-20 22:02:48.000000000 +0200
+++ cfitsio/configure	2013-04-03 21:32:18.525433305 +0300
@@ -3932,7 +3932,8 @@
     SHLIB_SUFFIX=".sl"
     ;;
   lnx)
-    SHLIB_LD=":"
+    SHLIB_LD="cc -shared -Wl,-soname,libcfitsio.so.0"
+    SHLIB_SUFFIX=".so.0"
     ;;
   osf)
     SHLIB_LD="ld -shared -expect_unresolved '*'"
@@ -3953,7 +3954,7 @@
 # Darwin uses gcc (=cc), but needs different flags (see above)
 if test "x$EXT" != xdarwin && test "x$EXT" != xcygwin && test "x$EXT" != xmingw32; then
   if test "x$GCC" = xyes; then
-    SHLIB_LD="$CC -shared"
+    SHLIB_LD="cc -shared -Wl,-soname,libcfitsio.so.0"
     lhea_shlib_cflags='-fPIC'
   fi
 fi
openSUSE Build Service is sponsored by