Subject: | Current Git version of Prima does not compile on Mac |
Makefile.PL does not complete successfully on Mac (Lion, v 10.7.1). This problem started with
the Makefile.PL overhaul, commit aaf9671cb2048a54ec1c4c998e0e06d0cd7f85d2. Running
Makefile.PL results in the following output:
--------%<--------
Version: 1.31
Compiler: gcc
Checking if can compile... yes
Checking if can link... no (see also makefile.log for details)
-------->%--------
makefile.log says this:
--------%<--------
Version: 1.31
Compiler: gcc
Checking if can compile... yes
Checking if can link... no (see also makefile.log for details)
Davids-MacBook-Pro:Prima davidmertens$ cat makefile.log
cc -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -c -
o/var/folders/n3/hj1y1pzx4s11jyf6l55dm1340000gn/T//pmts0000.o
/var/folders/n3/hj1y1pzx4s11jyf6l55dm1340000gn/T//pmts0000.c
cc -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -
o/var/folders/n3/hj1y1pzx4s11jyf6l55dm1340000gn/T//pmts0000
/var/folders/n3/hj1y1pzx4s11jyf6l55dm1340000gn/T//pmts0000.c
ld: unknown option: -o/var/folders/n3/hj1y1pzx4s11jyf6l55dm1340000gn/T//pmts0000
collect2: ld returned 1 exit status
-------->%--------
So, it looks like the linker doesn't know what to do with the -o flag? Seems strange this would
work on a linux box yet fail on Mac, since they both use gcc underneath.