Commit 14c3f417 by Jim Stichnoth

Subzero: Fix the link command for Trusty.

With the original link command, -lpthread comes before some other LLVM libraries, and this ends up causing undefined pthreads symbols. The new link command makes sure the -lpthread part comes last. BUG= none R=jvoung@chromium.org Review URL: https://codereview.chromium.org/514723004
parent ef8cf0e0
...@@ -34,7 +34,8 @@ $(info Using HOST_ARCH = $(HOST_ARCH)) ...@@ -34,7 +34,8 @@ $(info Using HOST_ARCH = $(HOST_ARCH))
$(info -----------------------------------------------) $(info -----------------------------------------------)
LLVM_CXXFLAGS := `$(LLVM_BIN_PATH)/llvm-config --cxxflags` LLVM_CXXFLAGS := `$(LLVM_BIN_PATH)/llvm-config --cxxflags`
LLVM_LDFLAGS := `$(LLVM_BIN_PATH)/llvm-config --ldflags --libs` LLVM_LDFLAGS := `$(LLVM_BIN_PATH)/llvm-config --libs` \
`$(LLVM_BIN_PATH)/llvm-config --ldflags`
# It's recommended that CXX matches the compiler you used to build LLVM itself. # It's recommended that CXX matches the compiler you used to build LLVM itself.
OPTLEVEL := -O0 OPTLEVEL := -O0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment