X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=ext%2Futil%2Fmake_ext;h=8bcd7d8ad2bb81f1343da88b8f2c6495f62db654;hb=e67426a489d5f4a242c5edc688e24e7e32e60c26;hp=54caf7dfd8d82be68edcb31bdd2c168ce7800d4b;hpb=92c28edd459d810e3c841dc07d7846c462b368a9;p=p5sagit%2Fp5-mst-13.2.git diff --git a/ext/util/make_ext b/ext/util/make_ext index 54caf7d..8bcd7d8 100644 --- a/ext/util/make_ext +++ b/ext/util/make_ext @@ -85,16 +85,19 @@ echo " Making $mname ($target)" cd ext/$pname -# check link type and do any preliminaries +# check link type and do any preliminaries. Valid link types are +# 'dynamic', 'static', and 'static_pic' (the last one respects +# CCCDLFLAGS such as -fPIC -- see static_target in the main Makefile.SH) case "$target" in - # convert 'static' or 'dynamic' into 'all LINKTYPE=XXX' +dynamic) makeargs="LINKTYPE=dynamic"; + target=all + ;; static) makeargs="LINKTYPE=static CCCDLFLAGS=" target=all ;; -dynamic) makeargs="LINKTYPE=dynamic"; +static_pic) makeargs="LINKTYPE=static" target=all ;; - nonxs) makeargs=""; target=all ;; @@ -116,7 +119,7 @@ nonxs) makeargs=""; esac if test ! -f $makefile ; then - test -f Makefile.PL && ../$depth/miniperl -I../$depth/lib Makefile.PL INSTALLDIRS=perl $passthru + test -f Makefile.PL && ../$depth/miniperl -I../$depth/lib Makefile.PL INSTALLDIRS=perl PERL_CORE=1 $passthru fi if test ! -f $makefile ; then if test -f Makefile.SH; then