diff options
author | Kiyoshi Aman <aphrael@alpinelinux.org> | 2011-11-03 08:55:11 -0400 |
---|---|---|
committer | Kiyoshi Aman <aphrael@alpinelinux.org> | 2011-11-03 08:58:48 -0400 |
commit | ef2a421e049fcb74220bcb431f83ac9814815261 (patch) | |
tree | 94b205c3a448ab4b257fa836ead1c35ef050385e | |
parent | d4054415e8a1f10639633c2e58479985690f36a4 (diff) | |
download | abuild-ef2a421e049fcb74220bcb431f83ac9814815261.tar.gz abuild-ef2a421e049fcb74220bcb431f83ac9814815261.tar.bz2 abuild-ef2a421e049fcb74220bcb431f83ac9814815261.tar.xz abuild-ef2a421e049fcb74220bcb431f83ac9814815261.zip |
apkbuild-cpan: export CFLAGS so modules using C/XS build properly.
-rwxr-xr-x | apkbuild-cpan.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apkbuild-cpan.in b/apkbuild-cpan.in index 9cf935a..e87c213 100755 --- a/apkbuild-cpan.in +++ b/apkbuild-cpan.in @@ -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 |