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
This commit is contained in:
Leo Yuriev 2015-09-05 18:30:30 +03:00
parent abda67f23e
commit fa0751771e

View File

@ -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
########################################################################