[llvm-commits] [test-suite] r171187 - /test-suite/trunk/MultiSource/Benchmarks/7zip/Makefile

Michael Gottesman mgottesman at apple.com
Fri Dec 28 02:47:42 PST 2012


Author: mgottesman
Date: Fri Dec 28 04:47:42 2012
New Revision: 171187

URL: http://llvm.org/viewvc/llvm-project?rev=171187&view=rev
Log:
Added -pthreads to LDFLAGS (thanks to Alastair Murray) and CFLAGS/CXXFLAGS (thanks to my paranoia).

This fixes a compilation issue that arose since using -pthread on OS X
is not necessary while it is on Linux. The reason pthreads is not
necessary to be explicitly linked in on OS X is because it is already
in libSystem.dylib.


Modified:
    test-suite/trunk/MultiSource/Benchmarks/7zip/Makefile

Modified: test-suite/trunk/MultiSource/Benchmarks/7zip/Makefile
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/7zip/Makefile?rev=171187&r1=171186&r2=171187&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/7zip/Makefile (original)
+++ test-suite/trunk/MultiSource/Benchmarks/7zip/Makefile Fri Dec 28 04:47:42 2012
@@ -8,14 +8,14 @@
 CFLAGS += -DBREAK_HANDLER -DUNICODE -D_UNICODE -I$(PROJ_SRC_DIR)/C \
 	        -I$(PROJ_SRC_DIR)/CPP/myWindows -I$(PROJ_SRC_DIR)/CPP/include_windows \
           -I$(PROJ_SRC_DIR)/CPP -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
-					-DNDEBUG -D_REENTRANT -DENV_UNIX -D_7ZIP_LARGE_PAGES
+					-DNDEBUG -D_REENTRANT -DENV_UNIX -D_7ZIP_LARGE_PAGES -pthread
 
 CXXFLAGS += -DBREAK_HANDLER -DUNICODE -D_UNICODE -I$(PROJ_SRC_DIR)/C \
 	        -I$(PROJ_SRC_DIR)/CPP/myWindows -I$(PROJ_SRC_DIR)/CPP/include_windows \
           -I$(PROJ_SRC_DIR)/CPP -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
-					-DNDEBUG -D_REENTRANT -DENV_UNIX -D_7ZIP_LARGE_PAGES
+					-DNDEBUG -D_REENTRANT -DENV_UNIX -D_7ZIP_LARGE_PAGES -pthread
 
-LDFLAGS = -lstdc++
+LDFLAGS = -lstdc++ -pthread
 
 Source = \
 CPP/myWindows/myGetTickCount.cpp \





More information about the llvm-commits mailing list