diff options
author | rubidium <rubidium@openttd.org> | 2010-04-14 10:00:57 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-04-14 10:00:57 +0000 |
commit | ac6e8a211cf64000a1a5c1b4da93b983ed135698 (patch) | |
tree | 8186c7fea43ccc0e4bfa1adaff52c0fb0163d3e2 | |
parent | 2152462e9d9f4e9e9f4a1e9b175b3765eb81c462 (diff) | |
download | openttd-ac6e8a211cf64000a1a5c1b4da93b983ed135698.tar.xz |
(svn r19627) -Fix [OSX]: mark the macports default include directory as a system include directory so our -W flags don't cause warnings on headers in there (planetmaker)
As this is a OS X patch... I have not and cannot test it, so if it breaks your system: do not blame me!
-rw-r--r-- | config.lib | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config.lib b/config.lib index fd5949652..be58f7697 100644 --- a/config.lib +++ b/config.lib @@ -1330,6 +1330,10 @@ make_cflags_and_ldflags() { if [ "$os" = "OSX" ]; then LDFLAGS="$LDFLAGS -framework Cocoa" + + # Add macports include dir which is not always set a default system dir. This avoids zillions of bogus warnings. + CFLAGS="$CFLAGS -isystem/opt/local/include" + if [ "$enable_dedicated" = "0" ] && ([ "$cpu_type" = "32" ] || [ "$enable_universal" != "0" ]); then LIBS="$LIBS -framework QuickTime" else |