Skip to content

Commit

Permalink
Enable pthread support for oatdump and dex2oat
Browse files Browse the repository at this point in the history
Hardcoded for now

Signed-off-by: Paul Beeler <pbeeler80@gmail.com>
  • Loading branch information
pbeeler authored and AOSPAL committed Jul 26, 2014
1 parent ac7a68f commit 93d3763
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions core/binary.mk
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,20 @@ LOCAL_STATIC_LIBRARIES += libprotobuf-cpp-2.3.0-lite
endif
endif

# Pthread support wip
# Required for linux-i686-4.8 TC
ifeq (1,$(words $(filter oatdump dex2oat, $(LOCAL_MODULE))))
ifdef LOCAL_LDLIBS
LOCAL_LDLIBS += -ldl -lpthread
else
LOCAL_LDLIBS := -ldl -lpthread
endif
ifeq ($(HOST_OS),linux)
LOCAL_LDLIBS += -lrt
endif
LOCAL_CFLAGS += -pthread
LOCAL_CPPFLAGS += -pthread
endif

###########################################################
## YACC: Compile .y files to .cpp and the to .o.
Expand Down

0 comments on commit 93d3763

Please sign in to comment.