|
From: Daniel J S. <dan...@ie...> - 2012-12-27 07:27:17
|
On 12/26/2012 08:11 PM, Mikhail Kononets wrote:
> On 27/12/2012 00:09, Daniel J Sebald wrote:
>> On 12/26/2012 02:57 PM, Mikhail Kononets wrote:
> i made some more trials. Slackware build script for gnuplot invokes
> ./configure with --build=i486-slackware-linux. If i omit setting --build
> option, then C++ compiler is detected properly and gnuplot is built with
> wxt terminal.
>
> there are few more strange issues building 4.6 and some syntax changes
> between 4.4 and 4.6 which must be taken into account before i can switch
> to 4.6. so i give up and keep version 4.4.4 running for now.
>
> thanks everyone for help.
> Mikhail
>
Don't give up. The change I suggested in the previous post should allow
you to build a little further. With "--build=i486-slackware-linux" then
'build' no longer is equal to 'host', and that is when the incorrect
conditional statement applies:
if test "${build}" != "${host}"
then
CC=${CC-${host_alias}-gcc}
CFLAGS=${CFLAGS-"-g -O2"}
CXX=${CXX-${host_alias}-c++}
CXXFLAGS=${CXXFLAGS-"-g -O2"}
CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
By removing the "--build=i486-slackware-linux" I suspect you are no
longer doing a cross compile which may lead to other problems in
configure on your system.
Please change the following two lines
CC=${CC-${host_alias}-gcc}
CXX=${CXX-${host_alias}-c++}
to this
CC=${CC-${host_alias-gcc}}
CXX=${CXX-${host_alias-c++}}
and try configuring once again. Report back if there are further
issues. There appear to be some FIXMEs in the configure code that
probably haven't been resolved because no one has run across the issue
yet. You might be able to help.
Dan
|