Skip to content

Commit

Permalink
Don't use lpthread for Android
Browse files Browse the repository at this point in the history
Thanks to Peter Osterlund for the feedback.

No functional change.
  • Loading branch information
mcostalba committed Sep 1, 2013
1 parent aee404f commit 849b089
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,12 @@ endif

### On mingw use Windows threads, otherwise POSIX
ifneq ($(comp),mingw)
# Haiku has pthreads in its libroot, so only link it in on other platforms
ifneq ($(UNAME),Haiku)
LDFLAGS += -lpthread
# On Android Bionic's C library comes with its own pthread implementation bundled in
ifneq ($(arch),armv7)
# Haiku has pthreads in its libroot, so only link it in on other platforms
ifneq ($(UNAME),Haiku)
LDFLAGS += -lpthread
endif
endif
endif

Expand Down

0 comments on commit 849b089

Please sign in to comment.