Ticket #5390: macports-ccachedistcc.patch
File macports-ccachedistcc.patch, 2.8 KB (added by afb@…, 17 years ago) |
---|
-
src/port1.0/portconfigure.tcl
75 75 default configure.universal_ldflags {"-arch i386 -arch ppc"} 76 76 77 77 # Select a distinct compiler (C, C preprocessor, C++) 78 options configure.cc configure.cxx configure.cpp configure.objc configure.f77 configure.f90 configure.fc configure.javac configure.compiler 78 options configure.ccache configure.distcc configure.cc configure.cxx configure.cpp configure.objc configure.f77 configure.f90 configure.fc configure.javac configure.compiler 79 default configure.ccache yes 80 default configure.distcc no 79 81 default configure.cc {} 80 82 default configure.cxx {} 81 83 default configure.cpp {} … … 123 125 global [info globals] 124 126 global worksrcpath use_configure use_autoconf use_automake use_xmkmf 125 127 global configure.env configure.cflags configure.cppflags configure.cxxflags configure.objcflags configure.ldflags configure.fflags configure.f90flags configure.fcflags configure.classpath configure.macosx_deployment_target 126 global configure.cc configure.cxx configure.cpp configure.objc configure.f77 configure.f90 configure.fc configure.javac configure.compiler prefix128 global configure.ccache configure.distcc configure.cc configure.cxx configure.cpp configure.objc configure.f77 configure.f90 configure.fc configure.javac configure.compiler prefix 127 129 global os.platform os.major 128 130 129 131 if {[tbool use_automake]} { … … 235 237 # Merge (ld|c|cpp|cxx)flags into the environment variable. 236 238 parse_environment configure 237 239 240 # Set pre-compiler filter to use (ccache/distcc), if any. 241 if {[tbool configure.ccache] && [tbool configure.distcc]} { 242 set filter "ccache " 243 append_list_to_environment_value configure "CCACHE_PREFIX" "distcc" 244 } elseif {[tbool configure.ccache]} { 245 set filter "ccache " 246 } elseif {[tbool configure.distcc]} { 247 set filter "distcc " 248 } else { 249 set filter "" 250 } 251 238 252 # Append configure flags. 239 append_list_to_environment_value configure "CC" ${ configure.cc}240 append_list_to_environment_value configure "CPP" ${ configure.cpp}241 append_list_to_environment_value configure "CXX" ${ configure.cxx}242 append_list_to_environment_value configure "OBJC" ${ configure.objc}253 append_list_to_environment_value configure "CC" ${filter}${configure.cc} 254 append_list_to_environment_value configure "CPP" ${filter}${configure.cpp} 255 append_list_to_environment_value configure "CXX" ${filter}${configure.cxx} 256 append_list_to_environment_value configure "OBJC" ${filter}${configure.objc} 243 257 append_list_to_environment_value configure "FC" ${configure.fc} 244 258 append_list_to_environment_value configure "F77" ${configure.f77} 245 259 append_list_to_environment_value configure "F90" ${configure.f90}