summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Lin <danny@kdrag0n.dev>2019-10-20 18:43:08 -0700
committerDanny Lin <danny@kdrag0n.dev>2019-10-20 18:49:42 -0700
commitad3e7e97780c406fca5afa56239b2a6b71cf6277 (patch)
treef6e502aad44c45505fd956d88133642cda727a2d
parent2e97fa1b0d76edc6517fa4a8a4f6e0792b458e8c (diff)
downloadfio-ad3e7e97780c406fca5afa56239b2a6b71cf6277.tar.gz
fio-ad3e7e97780c406fca5afa56239b2a6b71cf6277.tar.bz2
Makefile: Link to the system logging library on Android
Android replaces syslog calls with calls to the Android system logging library, liblog. Link to liblog when compiling for Android to fix the following undefined reference errors: aarch64-linux-android-ld: log.o: in function `android_polyfill_vsyslog': /usr/include/syslog.h:185: undefined reference to `__android_log_print' aarch64-linux-android-ld: /usr/include/syslog.h:182: undefined reference to `__android_log_vprint' Signed-off-by: Danny Lin <danny@kdrag0n.dev>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7c21ef83..7aab6abd 100644
--- a/Makefile
+++ b/Makefile
@@ -170,7 +170,7 @@ endif
ifeq ($(CONFIG_TARGET_OS), Android)
SOURCE += diskutil.c fifo.c blktrace.c cgroup.c trim.c profiles/tiobench.c \
oslib/linux-dev-lookup.c
- LIBS += -ldl
+ LIBS += -ldl -llog
LDFLAGS += -rdynamic
endif
ifeq ($(CONFIG_TARGET_OS), SunOS)