Skip to content
KATOH Yasufumi edited this page Aug 25, 2017 · 4 revisions

Perlの site_{lib,arch} と vendor_{lib,arch} をきちっとわけてみました。公式パッケージではパスに perl のバージョン番号が入りません。

perl module のパッケージ作成の際は

perl Makefile.PL INSTALLDIRS=vendor

でおねがいします。

perl 5.24.0 の configure options

    if [ $arch = "x86_64" ]; then
        arch_opts="-Dcccdlflags='-fPIC'"
    else
        arch_opts=""
    fi
  :(snip)
    sh Configure \
       -des \
       -Dprefix=/usr \
       -Dvendorprefix=/usr \
       -Dprivlib=/usr/share/perl5/core_perl \
       -Darchlib=/usr/${libdir}/perl5 \
       -Dsitelib=/usr/share/perl5/site_perl \
       -Dsitearch=/usr/${libdir}/perl5/site_perl \
       -Dvendorlib=/usr/share/perl5/vendor_perl \
       -Dvendorarch=/usr/${libdir}/perl5/vendor_perl \
       -Dman1dir=/usr/share/man/man1 \
       -Dman3dir=/usr/share/man/man3 \
       -Dpager="/usr/bin/less -isR"  \
       -Dcc='gcc -isystem /usr/include' \
       -Dlddlflags="-shared ${LDFLAGS}" \
       -Dldflags="${LDFLAGS}" \
       -Dusethreads \
       ${arch_opts} \
       -Duseshrplib