On Jan 8, 2012, at 4:00 PM, Mark Brethen wrote:

> 
> On Jan 8, 2012, at 12:45 PM, Bradley Giesbrecht wrote:
> 
>> 
>> On Jan 7, 2012, at 7:53 PM, Mark Brethen wrote:
>> 
>>> 
>>> On Jan 6, 2012, at 8:02 PM, Ryan Schmidt wrote:
>>> 
>>>>> 
>>>>> You say that MacPorts' configure invocation would include a bunch of 
>>>>> environment variables, etc. but I can't see how that helps, since the 
>>>>> configure script, and I assume the make files as well, are running "gcc" 
>>>>> explicitly.
>>>> 
>>>> Correct; in that case, you would first have to patch the configure script 
>>>> to make use of the environment variables (like $CC) that MacPorts passes.
>>> 
>>> I looked at the top level configure and make scripts and it looks to me 
>>> like they use the environment variables, with one exception noted below:
>> 
>> 
>> With the sourceforge release sources it also appears that configure handles 
>> both --with-csl and ---with-psl together.
>> 
>> Regards,
>> Bradley Giesbrecht (pixilla)
>> 
>> 
>> 
>> 
> 
> This results with an error:
> 
> :info:configure configure: error: If you want to build both CSL and PSL 
> versions then you will
> :info:configure need to run the configure script twice, once with --with-csl 
> and any
> :info:configure other relevent options and once with --with-psl and any 
> relevant PSL
> :info:configure options. After that you may use "make" and both systems 
> should be made.
> :info:configure shell command " cd 
> "/opt/local/var/macports/build/_Users_marbre_ports_math_reduce/reduce/work/trunk"
>  && ./configure --prefix=/opt/local --with-csl --with-psl " returned error 1
> 
> Back to square one.
> 
> Mark
> 
> 
> 
> 

Previous script:

configure {
   system -W ${worksrcpath} "./configure --prefix=${prefix} --with-csl ; 
./configure --with-psl"
}

Resulting line in main.log:

:info:configure in-place build attempt = yes
:info:configure configure: host=x86_64-apple-darwin11.2.0 args= 
'--prefix=/opt/local' '--with-csl'
:info:configure configure: Will build in the x86_64-mac_10.7_lion-darwin11.2.0 
subdirectory
:info:configure configure: +++ Will build in 
/opt/local/var/macports/build/_Users_marbre_ports_math_reduce/reduce/work/trunk/cslbuild/x86_64-mac_10.7_lion-darwin11.2.0
:info:configure configure: passcc = 
:info:configure configure: doconfig = /bin/sh 
/opt/local/var/macports/build/_Users_marbre_ports_math_reduce/reduce/work/trunk/configure
  '--prefix=/opt/local' '--with-csl'    CPPFLAGS="" CFLAGS=""             
CXXFLAGS="" LDFLAGS=""              
--with-build="x86_64-mac_10.7_lion-darwin11.2.0" 
--with-pslbuild="x86_64-mac_10.7_lion-darwin11.2.0"
:info:configure configure: Absolute path to source directory = 
/opt/local/var/macports/build/_Users_marbre_ports_math_reduce/reduce/work/trunk
:info:configure checking build system type... x86_64-apple-darwin11.2.0
:info:configure checking host system type... x86_64-apple-darwin11.2.0
:info:configure in-place build attempt = no
:info:configure configure: host=x86_64-apple-darwin11.2.0 args= 
'--prefix=/opt/local' '--with-csl' 'CPPFLAGS=' 'CFLAGS=' 'CXXFLAGS=' 'LDFLAGS=' 
'--with-build=x86_64-mac_10.7_lion-darwin11.2.0' 
'--with-pslbuild=x86_64-mac_10.7_lion-darwin11.2.0'
:info:configure configure: Will build in the x86_64-mac_10.7_lion-darwin11.2.0 
subdirectory
:info:configure configure: +++ standard build case, srcdir = 
/opt/local/var/macports/build/_Users_marbre_ports_math_reduce/reduce/work/trunk 
= 
/opt/local/var/macports/build/_Users_marbre_ports_math_reduce/reduce/work/trunk



Script now passes environment variables:

configure {
   system -W ${worksrcpath} \
      "CC=${configure.cc} \
       CFLAGS=\"${configure.cflags} [get_canonical_archflags cc]\" \
       CXX=${configure.cxx} \
       CXXFLAGS=\"${configure.cxxflags} [get_canonical_archflags cxx]\" \
       CPPFLAGS=\"${configure.cppflags}\" \
       LDFLAGS=\"${configure.ldflags} [get_canonical_archflags ld]\" \
       ./configure --prefix=${prefix} --with-csl ; ./configure --with-psl"
}

Resulting lines in main.log:

:info:configure configure: Absolute path to source directory = 
/opt/local/var/macports/build/_Users_marbre_ports_math_reduce/reduce/work/trunk
:info:configure checking build system type... x86_64-apple-darwin11.2.0
:info:configure checking host system type... x86_64-apple-darwin11.2.0
:info:configure in-place build attempt = yes
:info:configure configure: host=x86_64-apple-darwin11.2.0 args= 
'--prefix=/opt/local' '--with-csl'
:info:configure configure: Will build in the x86_64-mac_10.7_lion-darwin11.2.0 
subdirectory
:info:configure configure: +++ Will build in 
/opt/local/var/macports/build/_Users_marbre_ports_math_reduce/reduce/work/trunk/cslbuild/x86_64-mac_10.7_lion-darwin11.2.0
:info:configure configure: passcc = CC="/Developer/usr/bin/clang" CPP="" 
CXX="/Developer/usr/bin/clang++" CXXCPP=""
:info:configure configure: doconfig = /bin/sh 
/opt/local/var/macports/build/_Users_marbre_ports_math_reduce/reduce/work/trunk/configure
  '--prefix=/opt/local' '--with-csl'    CPPFLAGS="-I/opt/local/include" 
CFLAGS="-O2 -arch x86_64"             CXXFLAGS="-O2 -arch x86_64" 
LDFLAGS="-L/opt/local/lib -arch x86_64"             
CC="/Developer/usr/bin/clang" CPP="" CXX="/Developer/usr/bin/clang++" CXXCPP="" 
--with-build="x86_64-mac_10.7_lion-darwin11.2.0" 
--with-pslbuild="x86_64-mac_10.7_lion-darwin11.2.0"
:info:configure configure: Absolute path to source directory = 
/opt/local/var/macports/build/_Users_marbre_ports_math_reduce/reduce/work/trunk
:info:configure checking build system type... x86_64-apple-darwin11.2.0
:info:configure checking host system type... x86_64-apple-darwin11.2.0
:info:configure in-place build attempt = no
:info:configure configure: host=x86_64-apple-darwin11.2.0 args= 
'--prefix=/opt/local' '--with-csl' 'CPPFLAGS=-I/opt/local/include' 'CFLAGS=-O2 
-arch x86_64' 'CXXFLAGS=-O2 -arch x86_64' 'LDFLAGS=-L/opt/local/lib -arch 
x86_64' 'CC=/Developer/usr/bin/clang' 'CPP=' 'CXX=/Developer/usr/bin/clang++' 
'CXXCPP=' '--with-build=x86_64-mac_10.7_lion-darwin11.2.0' 
'--with-pslbuild=x86_64-mac_10.7_lion-darwin11.2.0'
:info:configure configure: Will build in the x86_64-mac_10.7_lion-darwin11.2.0 
subdirectory
:info:configure configure: +++ standard build case, srcdir = 
/opt/local/var/macports/build/_Users_marbre_ports_math_reduce/reduce/work/trunk 
= 
/opt/local/var/macports/build/_Users_marbre_ports_math_reduce/reduce/work/trunk

Will this pass the 'UsingTheRightCompiler' script test?

What about those 'if gcc -isysroot ..." in the config scripts?

Mark




_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Reply via email to