Hi everyone,

Lately I have been occupied with some XS modules. The standard skeleton
as created by h2xs creates one Makefile.PL. Using something like

    sub MY::postamble {
        '
    $(MYEXTLIB): libdir/Makefile
        cd libdir && $(MAKE) $(PASSTHRU)
    ';

I can specify that prior building make should be issued in libdir/. This
is the directory where I have a library that needs to be compiled first.

But now I had to realize (especially on Solaris) that some compilers
need additional flags to compile the library properly. In my case, I
need to pass -Xa to SUN's ucbcc to enforce ANSI compatibility, otherwise
it wont compile. Doing

    perl Makefile.PL CCFLAGS=-Xa

with the toplevel Makefile.PL wont delegate the CCFLAGS on to
libdir/Makefile.PL. I know I can specify MY::pasthru() in the toplevel
Makefile.PL but I haven't yet been able to figure out how to pass on
CCFLAGS (or other flags).

Can anyone dawn a light on me?
Tassilo
-- 
$_=q!",}])(tsuJ[{@"tnirp}3..0}_$;//::niam/s~=)]3[))_$-3(rellac(=_$({
pam{rekcahbus;})(rekcah{lrePbus;})(lreP{rehtonabus;})(rehtona{tsuJbus!;
$_=reverse;s/sub/(reverse"bus").chr(32)/xge;tr~\n~~d;eval;

Reply via email to