1
1
mirror of https://gitlab.gnome.org/GNOME/gimp.git synced 2025-10-06 01:12:40 +02:00

Makefiles: don't use -xobjective-c when compiling C++ files on Mac

On Mac, pass -xobjective-c to the compiler through AM_CFLAGS, not
AM_CPPFLAGS, so that it's only used for C sources, and not C++
sources.  In the latter case, it clashes with the -std=... flag,
spewing an error.  Thanks, Partha :)
This commit is contained in:
Ell
2018-04-07 16:39:13 -04:00
parent bea27171ad
commit 06950be7f0
11 changed files with 33 additions and 13 deletions

View File

@@ -67,5 +67,7 @@ AM_CPPFLAGS = \
-DGIMP_PLUGIN_VERSION=\""$(GIMP_PLUGIN_VERSION)"\" \
-I$(top_srcdir) \
$(GTK_CFLAGS) \
-I$(includedir) \
-I$(includedir)
AM_CFLAGS = \
$(xobjective_c)