Turns out the bug isn't quite what I described. You need to use --
linkflags to specify for the linker: when doing this, the library is
correctly found in a full run of Configure.pl
For some reason, specifying ccflags/ldflags is enough when running
the single step.
Regards.
On Feb 14, 2007, at 12:09 PM, Will Coleda (via RT) wrote:
# New Ticket Created by Will Coleda
# Please include the string: [perl #41508]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=41508 >
Trying to build with GMP support on OSX intel. I have libgmp in
/opt/local/bin/
if I run:
CC="ccache gcc-4.0"
CX="ccache g++-4.0"
perl Configure.pl --cc="$CC" --cxx="$CX" --link="$CX" --ld="$CX"
--ccflags="-L/opt/local/lib -I/opt/local/include"
--ldflags="-L/opt/local/lib" --step=auto::gmp --verbose=auto:gmp
Then I get:
<SNIP>
Determining if your platform supports GMP...Argument "auto::gmp" isn't
numeric in numeric eq (==) at lib/Parrot/Configure.pm line 258.
Argument "auto::gmp" isn't numeric in numeric eq (==) at
lib/Parrot/Configure/Data.pm line 107.
ccache gcc-4.0 -L/opt/local/lib -I/opt/local/include -pipe -fno-common
-Wno-long-double -I/opt/local/include -I /opt/local/include -I./
include -c
test.c
c++ -L/opt/local/lib test.o -o test -lm -lreadline -lgmp
./test
6864797660130609714981900799081393217269435300143305409394463459185543
183397
6560521225596406614545549772963113914808580371219879997166438125740282
911150
57151 0
(yes) Argument "auto::gmp" isn't numeric in numeric eq (==) at
lib/Parrot/Configure/Data.pm line 107.
...........................yes.Argument "auto::gmp" isn't numeric
in numeric
eq (==) at lib/Parrot/Configure/Data.pm line 107.
So it finds it.
However, if i remove the option '--step=auto::gmp' from the
Configure run,
I'm told it *can't* find the lib. Looking at the debug output, I see:
ccache gcc-4.0 -L/opt/local/lib -I/opt/local/include -pipe -fno-common
-Wno-long-double -I./include -c test.c
c++ test.o -o test -lm -lgmp
/usr/bin/ld: can't locate file for: -lgmp
Note the linker step no longer specifies /opt/local/lib ...
Something is
stripping it out.
--
Will "Coke" Coleda
[EMAIL PROTECTED]