summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-10-27 18:09:40 -0400
committerJeffrey Walton <noloader@gmail.com>2017-10-27 18:09:40 -0400
commit4e6c4e0522999686948f90500b82860cd6e01334 (patch)
tree777765d8966d6ac453838308c6331732c6368e8f /GNUmakefile
parent1eb49a8db63fefb0b74f0cbf7fe2bac3d6a1e9c9 (diff)
downloadcryptopp-git-4e6c4e0522999686948f90500b82860cd6e01334.tar.gz
Fix Solaris build using SunCC
This broke when we fixed xlC builds on AIX
Diffstat (limited to 'GNUmakefile')
-rwxr-xr-xGNUmakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index e7f0a2d5..a646bbce 100755
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -50,7 +50,7 @@ IS_CYGWIN := $(shell $(CXX) -dumpmachine 2>/dev/null | $(GREP) -i -c "Cygwin")
IS_DARWIN := $(shell $(CXX) -dumpmachine 2>/dev/null | $(GREP) -i -c "Darwin")
IS_NETBSD := $(shell $(CXX) -dumpmachine 2>/dev/null | $(GREP) -i -c "NetBSD")
-SUN_COMPILER := $(shell $(CXX) -V 2>/dev/null | $(GREP) -i -c -E 'CC: (Sun|Studio)')
+SUN_COMPILER := $(shell $(CXX) -V 2>&1 | $(GREP) -i -c -E 'CC: (Sun|Studio)')
GCC_COMPILER := $(shell $(CXX) --version 2>/dev/null | $(GREP) -v -E '(llvm|clang)' | $(GREP) -i -c -E '(gcc|g\+\+)')
XLC_COMPILER := $(shell $(CXX) $(CXX) -qversion 2>/dev/null |$(GREP) -i -c "IBM XL")
CLANG_COMPILER := $(shell $(CXX) --version 2>/dev/null | $(GREP) -i -c -E '(llvm|clang)')