mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-30 22:47:16 +08:00
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:
parent
abda67f23e
commit
fa0751771e
2
Makefile
2
Makefile
@ -20,7 +20,7 @@
|
|||||||
CC ?= gcc
|
CC ?= gcc
|
||||||
CFLAGS ?= -O2 -g -Wall -Werror -Wno-unused-parameter
|
CFLAGS ?= -O2 -g -Wall -Werror -Wno-unused-parameter
|
||||||
CFLAGS += -pthread
|
CFLAGS += -pthread
|
||||||
LDLIBS = -lrt
|
LDLIBS = -Wl,--no-as-needed -lrt
|
||||||
prefix ?= /usr/local
|
prefix ?= /usr/local
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user