From e69bbd5ae22ab2d7dcc878f3a87787ba52803b29 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Tue, 24 Mar 2015 13:35:37 +0300 Subject: [PATCH] Do not override ccflags with just -Wall --- Makefile.PL | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index 16a12a6..a95d6ad 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -32,7 +32,7 @@ my $sophia_src = $sophia; `make -C $sophia_src libsophia.a`; - +my $ccflags = $Config::Config{ccflags} || ''; WriteMakefile( AUTHOR => 'Vitaliy Filippov ', ABSTRACT_FROM => 'Sophia.pm', @@ -40,7 +40,7 @@ WriteMakefile( NAME => 'Database::Sophia', LICENSE => 'perl', LINKTYPE => 'dynamic', - CCFLAGS => '-Wall', + CCFLAGS => "-Wall $ccflags", LIBS => ["-L$sophia_src -lsophia -lpthread"], INC => '-I'. $sophia_src );