Skip to content

Commit b7ffaf6

Browse files
hmepasJean-Baptiste Queru
authored andcommitted
Fix build on some linux machines
This adds -lpthread on linux for aapt and localize, which appear to be needed on some linux distros. Signed-off-by: Jean-Baptiste Queru <jbq@google.com>
1 parent 6061af1 commit b7ffaf6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tools/aapt/Android.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ LOCAL_STATIC_LIBRARIES := \
4141
libpng
4242

4343
ifeq ($(HOST_OS),linux)
44-
LOCAL_LDLIBS += -lrt
44+
LOCAL_LDLIBS += -lrt -lpthread
4545
endif
4646

4747
# Statically link libz for MinGW (Win SDK under Linux),

tools/localize/Android.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ LOCAL_STATIC_LIBRARIES := \
3434
libcutils
3535

3636
ifeq ($(HOST_OS),linux)
37-
LOCAL_LDLIBS += -lrt
37+
LOCAL_LDLIBS += -lrt -lpthread
3838
endif
3939

4040

0 commit comments

Comments
 (0)