23 lines
731 B
Diff
23 lines
731 B
Diff
diff -Nru cfitsio.orig/configure cfitsio/configure
|
|
--- cfitsio.orig/configure 2013-03-20 21:02:48.000000000 +0100
|
|
+++ cfitsio/configure 2013-04-15 16:02:10.868839677 +0200
|
|
@@ -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
|