From f3238742b2e0b3d997868428390e575e98ca5dbc Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 23 Aug 2018 04:56:45 -0400 Subject: [PATCH] Fix compile with IBM XLC -pthread was causing "xlC: 1501-210 (W) command option t contains an incorrect subargument" --- GNUmakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index 4bcd1a28..166354ca 100755 --- a/GNUmakefile +++ b/GNUmakefile @@ -551,7 +551,7 @@ endif # http://stackoverflow.com/questions/2127797/gcc-significance-of-pthread-flag-when-compiling # BAD_PTHREAD and HAVE_PTHREAD is due to GCC on Solaris. GCC rejects -pthread but defines # 39 *_PTHREAD_* related macros. Then we pickup the macros and enable the option... -BAD_PTHREAD = $(shell $(CXX) $(CXXFLAGS) -pthread -c adhoc.cpp 2>&1 | $(GREP) -i -c -E 'warning|illegal|unrecognized') +BAD_PTHREAD = $(shell $(CXX) $(CXXFLAGS) -pthread -c adhoc.cpp 2>&1 | $(GREP) -i -c -E 'warning|incorrect|illegal|unrecognized') HAVE_PTHREAD = $(shell $(CXX) $(CXXFLAGS) -pthread -dM -E adhoc.cpp 2>/dev/null | $(GREP) -i -c 'PTHREAD') ifeq ($(BAD_PTHREAD),0) ifneq ($(HAVE_PTHREAD),0)