build-style/perl-module.sh: use -lperl when building XS modules for shlib-requires.

This commit is contained in:
Christian Neukirchen 2015-06-22 19:52:56 +02:00
parent dad6b904b4
commit 1f69782fb5
1 changed files with 5 additions and 5 deletions

View File

@ -28,7 +28,7 @@ do_configure() {
PERL_MM_USE_DEFAULT=1 GCC="$CC" CC="$CC" LD="$CC" \ PERL_MM_USE_DEFAULT=1 GCC="$CC" CC="$CC" LD="$CC" \
OPTIMIZE="$CFLAGS" \ OPTIMIZE="$CFLAGS" \
CFLAGS="$CFLAGS -I${XBPS_CROSS_BASE}/usr/include" \ CFLAGS="$CFLAGS -I${XBPS_CROSS_BASE}/usr/include" \
LDFLAGS="$LDFLAGS -L${XBPS_CROSS_BASE}/usr/lib" \ LDFLAGS="$LDFLAGS -L${XBPS_CROSS_BASE}/usr/lib -lperl" \
LDDLFLAGS="-shared $CFLAGS -L${XBPS_CROSS_BASE}/usr/lib" \ LDDLFLAGS="-shared $CFLAGS -L${XBPS_CROSS_BASE}/usr/lib" \
perl Makefile.PL ${configure_args} INSTALLDIRS=vendor perl Makefile.PL ${configure_args} INSTALLDIRS=vendor
fi fi
@ -40,8 +40,8 @@ do_configure() {
PERL_MM_USE_DEFAULT=1 GCC="$CC" CC="$CC" LD="$CC" \ PERL_MM_USE_DEFAULT=1 GCC="$CC" CC="$CC" LD="$CC" \
OPTIMIZE="$CFLAGS" \ OPTIMIZE="$CFLAGS" \
CFLAGS="$CFLAGS -I${XBPS_CROSS_BASE}/usr/include" \ CFLAGS="$CFLAGS -I${XBPS_CROSS_BASE}/usr/include" \
LDFLAGS="$LDFLAGS -L${XBPS_CROSS_BASE}/usr/lib" \ LDFLAGS="$LDFLAGS -L${XBPS_CROSS_BASE}/usr/lib -lperl" \
LDDLFLAGS="-shared $CFLAGS -L${XBPS_CROSS_BASE}/usr/lib" \ LDDLFLAGS="-shared $CFLAGS -L${XBPS_CROSS_BASE}/usr/lib -lperl" \
perl Makefile.PL ${make_build_args} INSTALLDIRS=vendor perl Makefile.PL ${make_build_args} INSTALLDIRS=vendor
else else
msg_error "*** ERROR: couldn't find $perlmkf, aborting **\n" msg_error "*** ERROR: couldn't find $perlmkf, aborting **\n"
@ -54,8 +54,8 @@ do_build() {
: ${make_cmd:=make} : ${make_cmd:=make}
${make_cmd} CC="$CC" LD="$CC" CFLAGS="$CFLAGS" OPTIMIZE="$CFLAGS" \ ${make_cmd} CC="$CC" LD="$CC" CFLAGS="$CFLAGS" OPTIMIZE="$CFLAGS" \
LDFLAGS="$LDFLAGS -L${XBPS_CROSS_BASE}/usr/lib" \ LDFLAGS="$LDFLAGS -L${XBPS_CROSS_BASE}/usr/lib -lperl" \
LDDLFLAGS="-shared $CFLAGS -L${XBPS_CROSS_BASE}/usr/lib" \ LDDLFLAGS="-shared $CFLAGS -L${XBPS_CROSS_BASE}/usr/lib -lperl" \
${makejobs} ${make_build_args} ${make_build_target} ${makejobs} ${make_build_args} ${make_build_target}
} }