patch-configure 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- zlib-1.2.3.orig/configure 2005-07-11 22:11:57.000000000 +0200
  3. +++ zlib-1.2.3/configure 2008-12-31 16:43:55.922789768 +0100
  4. @@ -73,32 +73,9 @@ esac
  5. if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then
  6. CC="$cc"
  7. - SFLAGS=${CFLAGS-"-fPIC -O3"}
  8. + SFLAGS=${CFLAGS-"-fPIC -D_REENTRANT"}
  9. CFLAGS="$cflags"
  10. - case `(uname -s || echo unknown) 2>/dev/null` in
  11. - Linux | linux | GNU | GNU/*) LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1"};;
  12. - CYGWIN* | Cygwin* | cygwin* | OS/2* )
  13. - EXE='.exe';;
  14. - QNX*) # This is for QNX6. I suppose that the QNX rule below is for QNX2,QNX4
  15. - # (alain.bonnefoy@icbt.com)
  16. - LDSHARED=${LDSHARED-"$cc -shared -Wl,-hlibz.so.1"};;
  17. - HP-UX*)
  18. - LDSHARED=${LDSHARED-"$cc -shared $SFLAGS"}
  19. - case `(uname -m || echo unknown) 2>/dev/null` in
  20. - ia64)
  21. - shared_ext='.so'
  22. - SHAREDLIB='libz.so';;
  23. - *)
  24. - shared_ext='.sl'
  25. - SHAREDLIB='libz.sl';;
  26. - esac;;
  27. - Darwin*) shared_ext='.dylib'
  28. - SHAREDLIB=libz$shared_ext
  29. - SHAREDLIBV=libz.$VER$shared_ext
  30. - SHAREDLIBM=libz.$VER1$shared_ext
  31. - LDSHARED=${LDSHARED-"$cc -dynamiclib -install_name $libdir/$SHAREDLIBM -compatibility_version $VER1 -current_version $VER"};;
  32. - *) LDSHARED=${LDSHARED-"$cc -shared"};;
  33. - esac
  34. + LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1"}
  35. else
  36. # find system name and corresponding cc options
  37. CC=${CC-cc}