Ticket #25798: poco_1.3.6p2_compiler_arch.patch

File poco_1.3.6p2_compiler_arch.patch, 986 bytes (added by nimahoda@…, 14 years ago)

Make poco build for build_arch using configure.{cc,xx,cpp} compiler instead of choosing on its own.

  • Portfile

    old new  
    55
    66name            poco
    77version         1.3.6p2
     8revision        1
    89categories      devel
    910maintainers     nox openmaintainer
    1011platforms       darwin
     
    2930                    sha1    8356abfb11fc2694fa46d2c93e9b7dce75bd9371 \
    3031                    rmd160  471ad082126dbe0d40494a7b2bce1dbeaac83b78
    3132
    32 set config      Darwin
    3333set omit        {NetSSL_OpenSSL Data/ODBC Data/MySQL Crypto}
    3434
    35 configure.args  --no-samples
     35# Poco build doesn't support the standard --target config option.
     36if {$build_arch == "x86_64"} {
     37    set config      Darwin_x86_64
     38} else {
     39    set config      Darwin
     40}
     41
     42configure.args          --no-samples --config=${config}
     43
     44# Make sure poco build uses the right compiler.
     45build.args-append       CC=${configure.cc} \
     46                        CXX=${configure.cxx} \
     47                        CPP=${configure.cpp}
    3648
    3749pre-configure {
    3850    configure.args-append   --omit=[join ${omit} ,]