mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-30 01:44:13 +08:00
mdbx: link tools librt.so with --no-as-needed.
Change-Id: I9c5096320b264aa14f1905d15e9bd495087d1bb9
This commit is contained in:
parent
34d95c08eb
commit
fed7922b30
4
Makefile
4
Makefile
@ -89,7 +89,7 @@ mdbx_load: mdb_load.o mdbx.o
|
|||||||
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
|
||||||
|
|
||||||
mdbx_chk: mdb_chk.o mdbx.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
|
mtest0: mtest0.o mdbx.o
|
||||||
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
|
||||||
@ -113,7 +113,7 @@ mtest6: mtest6.o mdbx.o
|
|||||||
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
|
||||||
|
|
||||||
wbench: wbench.o mdbx.o
|
wbench: wbench.o mdbx.o
|
||||||
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ -lrt
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ -Wl,--no-as-needed,-lrt
|
||||||
|
|
||||||
mdbx.o: $(SRC_MDBX)
|
mdbx.o: $(SRC_MDBX)
|
||||||
$(CC) $(CFLAGS) -include mdbx.h -c mdb.c -o $@
|
$(CC) $(CFLAGS) -include mdbx.h -c mdb.c -o $@
|
||||||
|
Loading…
x
Reference in New Issue
Block a user