From fa0751771e73c45ec2aae659f403652e2ebacb02 Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Sat, 5 Sep 2015 18:30:30 +0300 Subject: [PATCH] lmdb: properly link with librt.so compatibility. Add '--no-as-needed' to LDFLAGS before -lrt. Otherwise ld may drop dependency to librt.so, and DSO could't be loaded when glibc < 2.17. Change-Id: I06f34958d7efc8c56dd80ce2a55a2b8425e791cd --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 96515d57..072089f5 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ CC ?= gcc CFLAGS ?= -O2 -g -Wall -Werror -Wno-unused-parameter CFLAGS += -pthread -LDLIBS = -lrt +LDLIBS = -Wl,--no-as-needed -lrt prefix ?= /usr/local ########################################################################