From fed7922b304621d16b32138f1d53ca5c5f9c3205 Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Sat, 14 Nov 2015 13:42:05 +0300 Subject: [PATCH] mdbx: link tools librt.so with --no-as-needed. Change-Id: I9c5096320b264aa14f1905d15e9bd495087d1bb9 --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 09f9040b..ee18d454 100644 --- a/Makefile +++ b/Makefile @@ -89,7 +89,7 @@ mdbx_load: mdb_load.o mdbx.o $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ mdbx_chk: mdb_chk.o mdbx.o - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ -lrt + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ -Wl,--no-as-needed,-lrt mtest0: mtest0.o mdbx.o $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ @@ -113,7 +113,7 @@ mtest6: mtest6.o mdbx.o $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ wbench: wbench.o mdbx.o - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ -lrt + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ -Wl,--no-as-needed,-lrt mdbx.o: $(SRC_MDBX) $(CC) $(CFLAGS) -include mdbx.h -c mdb.c -o $@