From: Danny Lin Date: Mon, 21 Oct 2019 01:43:08 +0000 (-0700) Subject: Makefile: Link to the system logging library on Android X-Git-Tag: fio-3.17~29^2 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=ad3e7e97780c406fca5afa56239b2a6b71cf6277 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 --- 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)