Ticket #16863: python25-thin.diff
File python25-thin.diff, 880 bytes (added by afb@…, 16 years ago) |
---|
-
Portfile
60 60 61 61 build.target all libpython${branch}.dylib 62 62 63 # TODO: From python24, do we still need this?64 # Workaround for case-sensitive file systems65 63 post-build { 64 # TODO: From python24, do we still need this? 65 # Workaround for case-sensitive file systems 66 66 if { ![file exists ${worksrcpath}/python.exe] } { 67 67 ln -s python ${worksrcpath}/python.exe 68 68 } 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/'`" 69 72 } 70 73 71 74 test.run yes