RPM Package Manager, CVS Repository
  http://rpm5.org/cvs/
  ____________________________________________________________________________

  Server: rpm5.org                         Name:   Ralf S. Engelschall
  Root:   /v/rpm/cvs                       Email:  [EMAIL PROTECTED]
  Module: rpm                              Date:   24-Jul-2007 13:14:10
  Branch: HEAD                             Handle: 2007072412140900

  Modified files:
    rpm                     configure.ac

  Log:
    The Mac OS X (aka Darwin) ld(1) uses a strange non-standard Unix library
    search path order. This causes great problems when linking against the
    third-party libraries (especially Zlib which exists under Mac OS X in
    /usr/lib/libz.dylib, too). Force ld(1) to stick standard Unix search
    path order.

  Summary:
    Revision    Changes     Path
    2.218       +8  -0      rpm/configure.ac
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: rpm/configure.ac
  ============================================================================
  $ cvs diff -u -r2.217 -r2.218 configure.ac
  --- rpm/configure.ac  24 Jul 2007 09:01:52 -0000      2.217
  +++ rpm/configure.ac  24 Jul 2007 11:14:09 -0000      2.218
  @@ -528,6 +528,14 @@
       m68k-*-amigaos ) CFLAGS="$CFLAGS -Dfork=vfork" ;;
   esac
   
  +dnl # platform-hack: The Mac OS X (aka Darwin) ld(1) uses a strange
  +dnl # non-standard Unix library search path order. This causes great
  +dnl # problems when linking against the third-party libraries.
  +dnl # Force ld(1) to stick standard Unix search path order.
  +case "$host" in
  +    *-*-darwin8* ) LDFLAGS="$LDFLAGS -Wl,-search_paths_first" ;;
  +esac
  +
   dnl # FIXME: platform-hack: SCO and SunOS 4.x
   if echo "$target_os" | grep sco > /dev/null; then
        AC_DEFINE(NEED_STRINGS_H, 1, [Define as one if we need to include 
<strings.h> (along with <string.h>)])
  @@ .
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
CVS Sources Repository                                rpm-cvs@rpm5.org

Reply via email to