Skip to content

Instantly share code, notes, and snippets.

@gerdr
Created March 23, 2012 13:39
Show Gist options
  • Save gerdr/2170678 to your computer and use it in GitHub Desktop.
Save gerdr/2170678 to your computer and use it in GitHub Desktop.
diff --git a/config/init/hints/darwin.pm b/config/init/hints/darwin.pm
index 0c1c74d..2085be6 100644
--- a/config/init/hints/darwin.pm
+++ b/config/init/hints/darwin.pm
@@ -212,7 +212,7 @@ sub _probe_for_fink {
my %addl_flags = (
linkflags => "-L$fink_lib_dir",
ldflags => "-L$fink_lib_dir",
- ccflags => "-I$fink_include_dir",
+ ccflags => "-isystem $fink_include_dir",
);
return \%addl_flags;
}
@@ -235,7 +235,7 @@ sub _probe_for_macports {
my %addl_flags = (
linkflags => "-L$ports_lib_dir",
ldflags => "-L$ports_lib_dir",
- ccflags => "-I$ports_include_dir",
+ ccflags => "-isystem $ports_include_dir",
);
return \%addl_flags;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment