Changeset 97724
- Timestamp:
- Sep 13, 2012, 8:34:58 AM (12 years ago)
- Location:
- trunk/dports/lang
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/lang/gcc47/Portfile
r97713 r97724 121 121 # TODO: Optimize this. We don't need to actually bootstrap gcc to build libstdc++ 122 122 if {${subport} == "libstdcxx"} { 123 # Subport revisions start at 100, so we don't need to revbump the main port and subport together 124 revision 100 125 123 126 depends_run-delete path:lib/.libstdcxx:libstdcxx 124 127 … … 135 138 136 139 post-destroot { 137 eval delete [glob ${destroot}${prefix}/lib/*{a,py}]140 eval file delete [glob ${destroot}${prefix}/lib/*{a,py}] 138 141 file delete -force ${destroot}${prefix}/share/gcc-${major} 139 142 file delete -force ${destroot}${prefix}/include/${name} 140 143 144 # Don't install the linktime symlink. The compilers will place this 145 # in their libdir, and we don't want to break other toolchains by having 146 # them link against this libstdc++ (at least not until it is built on 147 # top of libc++abi). 148 file delete ${destroot}${prefix}/lib/libstdc++.dylib 149 141 150 # base doesn't like the + in this depspec path:lib/libstdc++.dylib:libstdcxx 142 151 system "touch ${destroot}${prefix}/lib/.libstdcxx" 152 153 if {[variant_isset universal]} { 154 foreach archdir [glob ${destroot}${prefix}/lib/*/] { 155 if {[file exists ${archdir}/libstdc++.6.dylib]} { 156 system "install_name_tool -id ${prefix}/lib/libstdc++.6.dylib ${archdir}/libstdc++.6.dylib" 157 system "lipo -create -output ${destroot}${prefix}/lib/libstdc++.6.dylib~ ${destroot}${prefix}/lib/libstdc++.6.dylib ${archdir}/libstdc++.6.dylib && mv ${destroot}${prefix}/lib/libstdc++.6.dylib~ ${destroot}${prefix}/lib/libstdc++.6.dylib" 158 } 159 file delete -force ${archdir} 160 } 161 } 143 162 144 163 # Some linkers don't optimize this unused link away. TODO: Fix this in the build system -
trunk/dports/lang/gcc48/Portfile
r97713 r97724 102 102 # TODO: Optimize this. We don't need to actually bootstrap gcc to build libstdc++ 103 103 if {${subport} == "libstdcxx-devel"} { 104 # Subport revisions start at 100, so we don't need to revbump the main port and subport together 105 revision 100 106 104 107 depends_run-delete port:${subport} 105 108 … … 116 119 117 120 post-destroot { 118 eval delete [glob ${destroot}${prefix}/lib/*{a,py}]121 eval file delete [glob ${destroot}${prefix}/lib/*{a,py}] 119 122 file delete -force ${destroot}${prefix}/share/gcc-${major} 120 123 file delete -force ${destroot}${prefix}/include/${name} 121 124 125 # Don't install the linktime symlink. The compilers will place this 126 # in their libdir, and we don't want to break other toolchains by having 127 # them link against this libstdc++ (at least not until it is built on 128 # top of libc++abi). 129 file delete ${destroot}${prefix}/lib/libstdc++.dylib 130 122 131 # base doesn't like the + in this depspec path:lib/libstdc++.dylib:libstdcxx 123 132 system "touch ${destroot}${prefix}/lib/.libstdcxx" 133 134 if {[variant_isset universal]} { 135 foreach archdir [glob ${destroot}${prefix}/lib/*/] { 136 if {[file exists ${archdir}/libstdc++.6.dylib]} { 137 system "install_name_tool -id ${prefix}/lib/libstdc++.6.dylib ${archdir}/libstdc++.6.dylib" 138 system "lipo -create -output ${destroot}${prefix}/lib/libstdc++.6.dylib~ ${destroot}${prefix}/lib/libstdc++.6.dylib ${archdir}/libstdc++.6.dylib && mv ${destroot}${prefix}/lib/libstdc++.6.dylib~ ${destroot}${prefix}/lib/libstdc++.6.dylib" 139 } 140 file delete -force ${archdir} 141 } 142 } 124 143 125 144 # Some linkers don't optimize this unused link away. TODO: Fix this in the build system
Note: See TracChangeset
for help on using the changeset viewer.