contribs: main.mak: Don't override CC/CXX if already provided
authorHugo Beauzée-Luyssen <hugo@beauzee.fr>
Thu, 20 Apr 2017 14:28:41 +0000 (16:28 +0200)
committerHugo Beauzée-Luyssen <hugo@beauzee.fr>
Fri, 21 Apr 2017 13:14:47 +0000 (15:14 +0200)
contrib/src/main.mak

index 6f822d9..9f49f26 100644 (file)
@@ -101,9 +101,13 @@ endif
 endif
 
 ifdef HAVE_ANDROID
+ifneq ($(findstring $(origin CC),undefined default),)
 CC :=  clang
+endif
+ifneq ($(findstring $(origin CXX),undefined default),)
 CXX := clang++
 endif
+endif
 
 ifdef HAVE_MACOSX
 MIN_OSX_VERSION=10.7