*** cfitsio/configure.in.orig 2012-07-10 17:47:06.000000000 +0200 --- cfitsio/configure.in 2012-07-10 17:47:54.000000000 +0200 *************** *** 316,322 **** # Shared library section #------------------------------------------------------------------------------- SHLIB_LD=: ! SHLIB_SUFFIX=".so" lhea_shlib_cflags= case $EXT in cygwin) --- 316,322 ---- # Shared library section #------------------------------------------------------------------------------- SHLIB_LD=: ! SHLIB_SUFFIX=".so.0" lhea_shlib_cflags= case $EXT in cygwin) *************** *** 343,349 **** SHLIB_SUFFIX=".sl" ;; lnx) ! SHLIB_LD=":" ;; osf) SHLIB_LD="ld -shared -expect_unresolved '*'" --- 343,349 ---- SHLIB_SUFFIX=".sl" ;; lnx) ! SHLIB_LD="$CC -shared -Wl,-soname,libcfitsio.so.0" ;; osf) SHLIB_LD="ld -shared -expect_unresolved '*'" *************** *** 363,369 **** # Darwin uses gcc (=cc), but needs different flags (see above) # if test "x$GCC" = xyes; then if test "x$GCC" = xyes && test "x$EXT" != xdarwin && test "x$EXT" != xcygwin; then ! SHLIB_LD="$CC -shared" lhea_shlib_cflags='-fPIC' fi if test "x$lhea_shlib_cflags" != x; then --- 363,369 ---- # Darwin uses gcc (=cc), but needs different flags (see above) # if test "x$GCC" = xyes; then if test "x$GCC" = xyes && test "x$EXT" != xdarwin && test "x$EXT" != xcygwin; then ! SHLIB_LD="$CC -shared -Wl,-soname,libcfitsio.so.0" lhea_shlib_cflags='-fPIC' fi if test "x$lhea_shlib_cflags" != x; then