Ticket #16863: python25-thin.diff

File python25-thin.diff, 880 bytes (added by afb@…, 16 years ago)
  • Portfile

     
    6060
    6161build.target            all libpython${branch}.dylib
    6262
    63 # TODO: From python24, do we still need this?
    64 # Workaround for case-sensitive file systems
    6563post-build {
     64    # TODO: From python24, do we still need this?
     65    # Workaround for case-sensitive file systems
    6666    if { ![file exists ${worksrcpath}/python.exe] } {
    6767        ln -s python ${worksrcpath}/python.exe
    6868    }
     69
     70    # thin dynamic library to have the same arch as static lib, even after -lSystemStubs
     71    system "lipo ${worksrcpath}/libpython${branch}.dylib -output ${worksrcpath}/libpython${branch}.dylib -thin `lipo -info ${worksrcpath}/libpython${branch}.a | tail -n 1 | sed -e 's/.*architecture: \\(.*\\)/\\1/'`"
    6972}
    7073
    7174test.run                yes