Index: libogre-perl/Makefile.PL
===================================================================
--- libogre-perl.orig/Makefile.PL	2011-08-06 19:22:09.000000000 +0100
+++ libogre-perl/Makefile.PL	2011-08-06 19:22:24.000000000 +0100
@@ -1,6 +1,7 @@
 use strict;
 use warnings;
 use ExtUtils::MakeMaker;
+use Config;
 
 my $OGRE_REQ_VERSION = '1.7.1';
 my $OIS_REQ_VERSION = '0.05';
@@ -28,7 +29,7 @@
             chomp $str;
             my ($v, $s) = split /\./, $str;
             if (($v == 4 && $s >= 2) || $v > 4) {
-                return {'CCFLAGS' => '-Wno-write-strings'};
+                return {'CCFLAGS' => "-Wno-write-strings $Config{ccflags}"};
             }
         }
     }
