Ticket #22116: gcc-multilib-universal.diff
File gcc-multilib-universal.diff, 7.4 KB (added by jmroot (Joshua Root), 14 years ago) |
---|
-
lang/gcc43/Portfile
51 51 52 52 use_bzip2 yes 53 53 54 # gmp and mpfr are not universal55 universal_variant no56 57 54 depends_lib port:gmp port:mpfr port:libiconv 58 55 59 56 patchfiles Make-lang.in.diff … … 68 65 } 69 66 70 67 # the generated compiler doesn't accept -arch 71 if {[info exists build_arch] && ${os.platform} == "darwin"} { 72 configure.cc_archflags 73 configure.cxx_archflags 74 configure.objc_archflags 68 configure.cc_archflags 69 configure.cxx_archflags 70 configure.objc_archflags 71 configure.ld_archflags 72 platform darwin { 75 73 configure.pre_args-append --build=${build_arch}-apple-darwin${os.major} 76 74 } 77 75 … … 87 85 --program-suffix=-mp-${major} \ 88 86 --with-gxx-include-dir=${prefix}/include/${name}/c++/ \ 89 87 --with-gmp=${prefix} \ 90 --with-mpfr=${prefix} 88 --with-mpfr=${prefix} \ 89 --disable-multilib 91 90 # do NOT use MacPorts binutils -- they do not work 92 91 configure.env-append AR_FOR_TARGET=/usr/bin/ar \ 93 92 AS_FOR_TARGET=/usr/bin/as \ … … 117 116 xinstall -m 444 ${filespath}/mp-gcc43 ${destroot}${prefix}/etc/select/gcc/ 118 117 } 119 118 120 platform powerpc {121 configure.args-append --disable-multilib122 }123 124 119 # Java support does not compile on 10.4/x86 125 120 platform darwin 8 i386 { 126 121 configure.args-delete --enable-languages=c,c++,objc,obj-c++,java,fortran … … 140 135 # --with-ar=${prefix}/bin/odar 141 136 #} 142 137 138 platform powerpc { 139 configure.universal_archs ppc ppc64 140 } 141 platform i386 { 142 configure.universal_archs i386 x86_64 143 } 144 configure.universal_cflags 145 configure.universal_cxxflags 146 configure.universal_ldflags 147 variant universal { 148 configure.args-delete --disable-multilib 149 configure.args-append --enable-multilib 150 } 151 143 152 livecheck.type regex 144 153 livecheck.url http://gcc.gnu.org/gcc-4.3/ 145 154 livecheck.regex GCC (4\\.3\\.\[0-9\]) 146 -
lang/gcc44/Portfile
51 51 52 52 use_bzip2 yes 53 53 54 # gmp and mpfr are not universal55 universal_variant no56 57 54 depends_lib port:gmp port:mpfr port:libiconv 58 55 59 56 patch.dir ${workpath}/gcc-${version} … … 63 60 worksrcdir build 64 61 65 62 # the generated compiler doesn't accept -arch 66 if {${os.platform} == "darwin"} { 67 configure.cc_archflags 68 configure.cxx_archflags 69 configure.objc_archflags 70 if {[info exists configure.ld_archflags]} { 71 configure.ld_archflags 72 } 63 configure.cc_archflags 64 configure.cxx_archflags 65 configure.objc_archflags 66 configure.ld_archflags 67 platform darwin { 73 68 configure.pre_args-append --build=${build_arch}-apple-darwin${os.major} 74 69 } 75 70 … … 90 85 --with-gxx-include-dir=${prefix}/include/${name}/c++/ \ 91 86 --with-gmp=${prefix} \ 92 87 --with-mpfr=${prefix} \ 93 --enable-stage1-checking 88 --enable-stage1-checking \ 89 --disable-multilib 94 90 # do NOT use MacPorts binutils -- they do not work 95 91 configure.env-append AR_FOR_TARGET=/usr/bin/ar \ 96 92 AS_FOR_TARGET=/usr/bin/as \ … … 121 117 ${destroot}${prefix}/share/python/classfile-44.py 122 118 } 123 119 124 platform powerpc {125 configure.args-append --disable-multilib126 }127 128 120 platform darwin 10 { 129 121 configure.args-append --enable-fully-dynamic-string 130 122 } … … 142 134 --with-ar=${prefix}/bin/odar 143 135 } 144 136 137 platform powerpc { 138 configure.universal_archs ppc ppc64 139 } 140 platform i386 { 141 configure.universal_archs i386 x86_64 142 } 143 configure.universal_cflags 144 configure.universal_cxxflags 145 configure.universal_ldflags 146 variant universal { 147 configure.args-delete --disable-multilib 148 configure.args-append --enable-multilib 149 } 150 145 151 livecheck.type regex 146 152 livecheck.url http://gcc.gnu.org/gcc-4.4/ 147 153 livecheck.regex GCC (4\\.4\\.\[0-9\]) 148 -
lang/gcc45/Portfile
61 61 62 62 use_bzip2 yes 63 63 64 # gmp and mpfr are not universal65 universal_variant no66 67 64 depends_lib port:gmp port:mpfr port:libiconv port:libmpc 68 65 69 66 patchfiles tls_configure_fix.diff … … 74 71 worksrcdir build 75 72 76 73 # the generated compiler doesn't accept -arch 77 if {[info exists build_arch] && ${os.platform} == "darwin"} { 78 configure.cc_archflags 79 configure.cxx_archflags 80 configure.objc_archflags 74 configure.cc_archflags 75 configure.cxx_archflags 76 configure.objc_archflags 77 configure.ld_archflags 78 platform darwin { 81 79 configure.pre_args-append --build=${build_arch}-apple-darwin${os.major} 82 80 } 83 81 … … 104 102 --with-gmp=${prefix} \ 105 103 --with-mpfr=${prefix} \ 106 104 --with-mpc=${prefix} \ 107 --enable-stage1-checking 105 --enable-stage1-checking \ 106 --disable-multilib 108 107 # do NOT use MacPorts binutils -- they do not work 109 108 configure.env-append AR_FOR_TARGET=/usr/bin/ar \ 110 109 AS_FOR_TARGET=/usr/bin/as \ … … 135 134 ${destroot}${prefix}/share/python/classfile-45.py 136 135 } 137 136 138 platform powerpc {139 configure.args-append --disable-multilib140 }141 142 137 platform darwin 10 { 143 138 configure.args-append --enable-fully-dynamic-string 144 139 } 145 140 141 platform powerpc { 142 configure.universal_archs ppc ppc64 143 } 144 platform i386 { 145 configure.universal_archs i386 x86_64 146 } 147 configure.universal_cflags 148 configure.universal_cxxflags 149 configure.universal_ldflags 150 variant universal { 151 configure.args-delete --disable-multilib 152 configure.args-append --enable-multilib 153 } 154 146 155 livecheck.type regex 147 156 livecheck.url http://gcc.gnu.org/gcc-4.5/ 148 157 livecheck.regex GCC (4\\.5\\.\[0-9\]) 149 -
lang/gcc46/Portfile
59 59 60 60 use_bzip2 yes 61 61 62 # gmp and mpfr are not universal63 universal_variant no64 65 62 depends_lib port:gmp port:mpfr port:libiconv port:libmpc 66 63 67 64 patchfiles patch-160729.diff … … 73 70 worksrcdir build 74 71 75 72 # the generated compiler doesn't accept -arch 76 if {[info exists build_arch] && ${os.platform} == "darwin"} { 77 configure.cc_archflags 78 configure.cxx_archflags 79 configure.objc_archflags 73 configure.cc_archflags 74 configure.cxx_archflags 75 configure.objc_archflags 76 configure.ld_archflags 77 platform darwin { 80 78 configure.pre_args-append --build=${build_arch}-apple-darwin${os.major} 81 79 } 82 80 … … 103 101 --with-gmp=${prefix} \ 104 102 --with-mpfr=${prefix} \ 105 103 --with-mpc=${prefix} \ 106 --enable-stage1-checking 104 --enable-stage1-checking \ 105 --disable-multilib 107 106 # do NOT use MacPorts binutils -- they do not work 108 107 configure.env-append AR_FOR_TARGET=/usr/bin/ar \ 109 108 AS_FOR_TARGET=/usr/bin/as \ … … 130 129 xinstall -m 444 ${filespath}/mp-gcc46 ${destroot}${prefix}/etc/select/gcc/ 131 130 } 132 131 133 platform powerpc {134 configure.args-append --disable-multilib135 }136 137 132 platform darwin 10 { 138 133 configure.args-append --enable-fully-dynamic-string 139 134 } … … 158 153 } 159 154 } 160 155 156 platform powerpc { 157 configure.universal_archs ppc ppc64 158 } 159 platform i386 { 160 configure.universal_archs i386 x86_64 161 } 162 configure.universal_cflags 163 configure.universal_cxxflags 164 configure.universal_ldflags 165 variant universal { 166 configure.args-delete --disable-multilib 167 configure.args-append --enable-multilib 168 } 169 161 170 livecheck.type regex 162 171 livecheck.url ftp://gcc.gnu.org/pub/gcc/snapshots/ 163 172 livecheck.regex LATEST-4.6 -> (4.6-\[0-9\]+) 164