Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
Showing with 12 additions and 4 deletions.
  1. +10 −2 Build.PL
  2. +1 −1 Changes
  3. +1 −1 lib/RRD/Tweak.pm
View
12 Build.PL
@@ -8,11 +8,19 @@ use Module::Build;
my $compiler_flags = `pkg-config librrd --cflags`;
$compiler_flags =~ s/\s+$//m;
-$compiler_flags = length($compiler_flags) ? [$compiler_flags]:undef;
+if( defined($ENV{RRDTWEAK_CFLAGS}) ) {
+ $compiler_flags .= ' ' . $ENV{RRDTWEAK_CFLAGS};
+}
+$compiler_flags = length($compiler_flags) ?
+ [split(/\s+/,$compiler_flags)]:undef;
my $linker_flags = `pkg-config librrd --libs`;
$linker_flags =~ s/\s+$//m;
-$linker_flags = length($linker_flags) ? [$linker_flags]:undef;
+if( defined($ENV{RRDTWEAK_LDFLAGS}) ) {
+ $linker_flags .= ' ' . $ENV{RRDTWEAK_LDFLAGS};
+}
+$linker_flags = length($linker_flags) ?
+ [split(/\s+/,$linker_flags)]:undef;
my $builder = Module::Build->new(
View
2 Changes
@@ -1,6 +1,6 @@
Revision history for RRD-Tweak
-0.02 2012-06-26
+0.03 2012-06-26
Documentation update
Build.PL uses pkg-config
View
2 lib/RRD/Tweak.pm
@@ -7,7 +7,7 @@ use Carp;
use base 'DynaLoader';
-our $VERSION = '0.02';
+our $VERSION = '0.03';
bootstrap RRD::Tweak;
# Internal object structure:

No commit comments for this range

Something went wrong with that request. Please try again.