From 56cdd3e8d506422b2fa82bc1584c0cb37c8a2dec Mon Sep 17 00:00:00 2001 From: "leipeng.tk" Date: Thu, 22 Aug 2019 15:29:54 +0800 Subject: [PATCH] Makefile: move -lrt -laio to build_tools/build_detect_platform --- Makefile | 6 ------ build_tools/build_detect_platform | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Makefile b/Makefile index f456753df..4f60d3397 100644 --- a/Makefile +++ b/Makefile @@ -240,12 +240,6 @@ ifeq ($(LINK_TERARK),static) endif endif -ifeq ($(shell uname),Linux) - #LINUX_LIBAIO := -laio - LDFLAGS += -laio -lrt -endif - - ############################################################################### # Lite build flag. diff --git a/build_tools/build_detect_platform b/build_tools/build_detect_platform index 9d3e5b23d..ce875b30f 100755 --- a/build_tools/build_detect_platform +++ b/build_tools/build_detect_platform @@ -147,7 +147,7 @@ case "$TARGET_OS" in else PLATFORM_LDFLAGS="$PLATFORM_LDFLAGS -latomic" fi - PLATFORM_LDFLAGS="$PLATFORM_LDFLAGS -lpthread -lrt" + PLATFORM_LDFLAGS="$PLATFORM_LDFLAGS -lpthread -lrt -laio" # PORT_FILES=port/linux/linux_specific.cc ;; SunOS) -- GitLab