Usually -lpthread is included due to LLVM link options, but when LLVM threading is disabled, this does not happen. pthread is still needed however because LLDB uses threading regardless of whether LLVM is built with threading support or not. Differential Revision: http://reviews.llvm.org/D5431 llvm-svn: 241006
33 lines
890 B
Makefile
33 lines
890 B
Makefile
##===- tools/lldb-mi/Makefile -------------------------------*- Makefile -*-===##
|
|
#
|
|
# The LLVM Compiler Infrastructure
|
|
#
|
|
# This file is distributed under the University of Illinois Open Source
|
|
# License. See LICENSE.TXT for details.
|
|
#
|
|
##===----------------------------------------------------------------------===##
|
|
LLDB_LEVEL := ../..
|
|
|
|
TOOLNAME = lldb-mi
|
|
|
|
NO_PEDANTIC = 1
|
|
|
|
LLVMLibsOptions += -ledit -llldb -llldbUtility
|
|
|
|
include $(LLDB_LEVEL)/Makefile
|
|
|
|
ifeq ($(HOST_OS),Darwin)
|
|
LLVMLibsOptions += -Wl,-rpath,@loader_path/../lib/
|
|
LLVMLibsOptions += -Wl,-sectcreate -Wl,__TEXT -Wl,__info_plist -Wl,"$(PROJ_SRC_DIR)/lldb-Info.plist"
|
|
endif
|
|
|
|
ifneq (,$(filter $(HOST_OS), Linux GNU/kFreeBSD))
|
|
LLVMLibsOptions += -Wl,-rpath,$(LibDir) -lpthread
|
|
endif
|
|
|
|
ifeq ($(HOST_OS),FreeBSD)
|
|
CPP.Flags += -I/usr/include/edit #-v
|
|
LLVMLibsOptions += -Wl,-rpath,$(LibDir) -lpthread
|
|
endif
|
|
|