summaryrefslogtreecommitdiff
path: root/debian/patches/hotspot-set-compiler.diff
blob: a2a6dfded09cfc00da981c1f9f78cdda0482c778 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# DP: Allow to overwrite CC/CXX from the environment
--- a/hotspot/make/linux/makefiles/gcc.make
+++ b/hotspot/make/linux/makefiles/gcc.make
@@ -39,7 +39,7 @@ ifeq ($(SPEC),)
     ifeq ($(USE_CLANG), true)
       CXX = clang++
       CC  = clang
-    else
+    else ifeq ($(CXX),)
       CXX = g++
       CC  = gcc
     endif