mirror of https://github.com/OpenTTD/OpenTTD
(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!release/1.1
parent
2152462e9d
commit
ac6e8a211c
|
@ -1330,6 +1330,10 @@ make_cflags_and_ldflags() {
|
||||||
|
|
||||||
if [ "$os" = "OSX" ]; then
|
if [ "$os" = "OSX" ]; then
|
||||||
LDFLAGS="$LDFLAGS -framework Cocoa"
|
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
|
if [ "$enable_dedicated" = "0" ] && ([ "$cpu_type" = "32" ] || [ "$enable_universal" != "0" ]); then
|
||||||
LIBS="$LIBS -framework QuickTime"
|
LIBS="$LIBS -framework QuickTime"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue