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

@ -64,7 +64,9 @@ AM_CPPFLAGS = \
$(GIO_CFLAGS) \
$(GEXIV2_CFLAGS) \
$(BINRELOC_CFLAGS) \
-I$(includedir) \
-I$(includedir)
AM_CFLAGS = \
$(xobjective_c)
AM_CCASFLAGS = \