Tuesday, September 11, 2007

make Perl modules on Solaris with GCC

To prevent the usual problems due to the lack of CC on solaris, you should download and install GCC from sunfreeware.com then change the following parameters in the Makefile and do make & make install

1. Change CC=cc to CC=gcc or ln -s gcc to cc
2. Change
CCCDLFLAGS = -KPIC
to
CCCDLFLAGS =
3. Change
OPTIMIZE = -xO3 -xspace -xildoff -xarch=v8
to
OPTIMIZE =
4. Change
CCFLAGS = -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ERRNO
to
CCFLAGS = -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO

source: http://atmail.com/view_article.php?num=251
We thank the superman above who initially wrote this!

No comments: