Hi, try something like this:
,'LDFROM' => "\$(OBJECT) libcdmg/${HTYPE}/libcdmg.a", and make similar changes to sub MY::subdirs. -- Yours sincerely, Vadim. On Thu, 9 Sep 2004, Billy N. Patton wrote: > 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 >