Here is my Makefile.PL: use ExtUtils::MakeMaker; my $HTYPE = `uname`; chomp $HTYPE; WriteMakefile( 'NAME' => 'Laff' ,'PREFIX' => './' ,'VERSION_FROM' => 'Laff.pm' ,'LIBS' => [" -Llibcdmg/${HTYPE} -lcdmg " , ' -lm '] ,'OPTIMIZE' => '-g3' ,'DISTNAME' => 'LaffPerl' ,'VERSION' => '1.0' ,'INSTALLDIRS' => 'perl' ,'INC' => '-Ilibcdmg' ,'LDFROM' => '$(OBJECT) libcdmg/${HTYPE}/libcdmg.a', );
sub MY::subdirs { '
$(OBJECT) : libcdmg/${HTYPE}/libcdmg.a
libcdmg/${HTYPE}/libcdmg.a : FORCE cd libcdmg ; /usr/local/bin/make
test :: ctest
ctest: cd libcdmg ; /usr/local/bin/make test
clean :: cd libcdmg ; /usr/local/bin/make clean
' }
When I run Make everything is ok until I get to:
rm -f blib/arch/auto/Laff/Laff.so
LD_RUN_PATH="/usr/lib" gcc -G -L/apps/perl/5.8.0/lib -R/apps/perl/5.8.0/lib Laff.o libcdmg//libcdmg.a -o blib/arch/auto/Laff/Laff.so -lm
gcc: libcdmg//libcdmg.a: No such file or directory
^
|
|
The ${HTYPE} seems to be missing from either the LDFROM or LIBS keys
--
___ _ ____ ___ __ __
/ _ )(_) / /_ __ / _ \___ _/ /_/ /____ ___
/ _ / / / / // / / ___/ _ `/ __/ __/ _ \/ _ \
/____/_/_/_/\_, / /_/ \_,_/\__/\__/\___/_//_/
/___/
Texas Instruments ASIC Circuit Design Methodlogy Group
Dallas, Texas, 214-480-4455, [EMAIL PROTECTED]