mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-22 07:00:28 +00:00
apkbuild-cpan: export CFLAGS so modules using C/XS build properly.
This commit is contained in:
parent
d4054415e8
commit
ef2a421e04
@ -168,13 +168,14 @@ sub update_functions {
|
||||
$prepare_func = <<'EOF';
|
||||
prepare() {
|
||||
cd "$_builddir"
|
||||
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
|
||||
perl Build.PL installdirs=vendor || return 1
|
||||
}
|
||||
EOF
|
||||
$build_func = <<'EOF';
|
||||
build() {
|
||||
cd "$_builddir"
|
||||
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
|
||||
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
|
||||
./Build && ./Build test
|
||||
}
|
||||
EOF
|
||||
@ -189,12 +190,14 @@ EOF
|
||||
$prepare_func = <<'EOF';
|
||||
prepare() {
|
||||
cd "$_builddir"
|
||||
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
|
||||
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
||||
}
|
||||
EOF
|
||||
$build_func = <<'EOF';
|
||||
build() {
|
||||
cd "$_builddir"
|
||||
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
|
||||
make && make test
|
||||
}
|
||||
EOF
|
||||
|
Loading…
Reference in New Issue
Block a user