Skip to content
Browse files

Makefile.PL: avoid adding -I"" to compiler command (closes #31)

this seems to have some ill effects
  • Loading branch information...
1 parent 9a28b96 commit c72236e21c4003f86053c9a3a28b9484b3a63791 @real-dam real-dam committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 Makefile.PL
View
5 Makefile.PL
@@ -200,6 +200,9 @@ if ($Config{cc} =~ /gcc/) {
$cflags = "-Wall -fno-strict-aliasing $cflags";
}
+my @inc;
+for ( $FB::INC, $FB::dbi_arch_dir ) { push @inc, qq(-I"$_") if $_ }
+
my %MakeParams = (
NAME => $module_name,
VERSION_FROM => $EMBEDDED
@@ -209,7 +212,7 @@ my %MakeParams = (
H => [ 'dbdimp.h', $EMBEDDED ? 'FirebirdEmbedded.h' : 'Firebird.h' ],
CCFLAGS => $cflags,
( $EMBEDDED ? ( DEFINE => '-DEMBEDDED' ) : () ),
- INC => qq(-I"$FB::INC" -I"$FB::dbi_arch_dir"),
+ INC => join( ' ', @inc ),
OBJECT => join( ' ',
$EMBEDDED ? "FirebirdEmbedded.o" : "Firebird.o", "dbdimp.o" ),
LIBS => [''],

0 comments on commit c72236e

Please sign in to comment.
Something went wrong with that request. Please try again.