Ticket #49948: patch-python-1.0.tcl.diff
File patch-python-1.0.tcl.diff, 2.6 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 9 years ago) |
---|
-
python-1.0.tcl
old new 127 127 OBJCFLAGS="${configure.universal_cflags}" \ 128 128 CXXFLAGS="${configure.universal_cxxflags}" \ 129 129 LDFLAGS="${configure.universal_ldflags}" 130 destroot.env-append CFLAGS="${configure.universal_cflags}" \131 OBJCFLAGS="${configure.universal_cflags}" \132 CXXFLAGS="${configure.universal_cxxflags}" \133 LDFLAGS="${configure.universal_ldflags}"134 130 } else { 135 131 build.env-append CFLAGS="${configure.cc_archflags}" \ 136 132 OBJCFLAGS="${configure.objc_archflags}" \ … … 139 135 F90FLAGS="${configure.f90_archflags}" \ 140 136 FCFLAGS="${configure.fc_archflags}" \ 141 137 LDFLAGS="${configure.ld_archflags}" 138 } 139 } 140 if {${python.set_compiler}} { 141 foreach var {cc objc cxx fc f77 f90} { 142 if {[set configure.${var}] ne ""} { 143 build.env-append [string toupper $var]="[set configure.${var}]" 144 } 145 } 146 } 147 } 148 pre-destroot { 149 if {${python.add_archflags}} { 150 if {[variant_exists universal] && [variant_isset universal]} { 151 destroot.env-append CFLAGS="${configure.universal_cflags}" \ 152 OBJCFLAGS="${configure.universal_cflags}" \ 153 CXXFLAGS="${configure.universal_cxxflags}" \ 154 LDFLAGS="${configure.universal_ldflags}" 155 } else { 142 156 destroot.env-append CFLAGS="${configure.cc_archflags}" \ 143 157 OBJCFLAGS="${configure.objc_archflags}" \ 144 158 CXXFLAGS="${configure.cxx_archflags}" \ … … 151 165 if {${python.set_compiler}} { 152 166 foreach var {cc objc cxx fc f77 f90} { 153 167 if {[set configure.${var}] ne ""} { 154 build.env-append [string toupper $var]="[set configure.${var}]"155 168 destroot.env-append [string toupper $var]="[set configure.${var}]" 156 169 } 157 170 }