Billy N. Patton <[EMAIL PROTECTED]> writes: >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 ']
Did you really mean "either -lcdmg OR -lm" ? perldoc ExtUtils::MakeMaker (with my _emphasis_) " LIBS An anonymous array of _alternative_ library specifications to be searched for (in order) until at least one library is found. E.g. âLIBSâ => ["âlgdbm", "âldbm âlfoo", "âL/path âldbm.nfs"] Mind, that any element of the array contains a complete set of arguments for the ld command. So do _not_ specify âLIBSâ => ["âltcl", "âltk", "âlX11"] " > ,'OPTIMIZE' => '-g3' > ,'DISTNAME' => 'LaffPerl' > ,'VERSION' => '1.0' > ,'INSTALLDIRS' => 'perl' > ,'INC' => '-Ilibcdmg' > ,'LDFROM' => '$(OBJECT) libcdmg/${HTYPE}/libcdmg.a', $HTYPE isn't interpollated in outer ' ' quotes. >); > >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