Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / lmdb / hardcoded-compiler.patch
blobddb247b7f113a8404f7d485b38fab63c412c5dac
1 commit 029031a68873bc3784a8561bd8e049efbd34f9d0 (HEAD)
2 Author: Vladimír Čunát <vcunat@gmail.com>
3 Date: Sun Apr 1 11:05:31 2018 +0200
5 make: gcc -> $(CC)
7 diff --git a/libraries/liblmdb/Makefile b/libraries/liblmdb/Makefile
8 index f254511..612484e 100644
9 --- a/libraries/liblmdb/Makefile
10 +++ b/libraries/liblmdb/Makefile
11 @@ -102,13 +102,13 @@ COV_OBJS=xmdb.o xmidl.o
13 coverage: xmtest
14 for i in mtest*.c [0-9]*.c; do j=`basename \$$i .c`; $(MAKE) $$j.o; \
15 - gcc -o x$$j $$j.o $(COV_OBJS) -pthread $(COV_FLAGS); \
16 + $(CC) -o x$$j $$j.o $(COV_OBJS) -pthread $(COV_FLAGS); \
17 rm -rf testdb; mkdir testdb; ./x$$j; done
18 gcov xmdb.c
19 gcov xmidl.c
21 xmtest: mtest.o xmdb.o xmidl.o
22 - gcc -o xmtest mtest.o xmdb.o xmidl.o -pthread $(COV_FLAGS)
23 + $(CC) -o xmtest mtest.o xmdb.o xmidl.o -pthread $(COV_FLAGS)
25 xmdb.o: mdb.c lmdb.h midl.h
26 $(CC) $(CFLAGS) -fPIC $(CPPFLAGS) -O0 $(COV_FLAGS) -c mdb.c -o $@