Skip to content
Browse files

Quick hack to fix Ubuntu 11.10 issues with TCC::Perl

  • Loading branch information...
1 parent 88e033f commit 051acaf8a8fce2013f8b0b6d54cc3d664d87a40b @run4flat run4flat committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/TCC/Perl.pm
View
6 lib/TCC/Perl.pm
@@ -16,7 +16,11 @@ die "Unable to locate Perl CORE directory!" unless $core_dir;
# Pull in the local includes:
use Config;
my @local_inc = grep {-d} split / /, $Config{locincpth};
-#print "Local includes are ", join('|', @local_inc), "\n";
+# Add i386-linux-gnu, since that's causing trouble on my Ubuntu. I wish there
+# were a better way to handle this. :-(
+for (@local_inc, '/usr/include') {
+ push @local_inc, "$_/i386-linux-gnu" if -d "$_/i386-linux-gnu";
+}
sub apply {
my (undef, $state) = @_;

0 comments on commit 051acaf

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