-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
omnibus: lmdb: allow overriding build/install environment & use commo…
…n env/flags This allows us to just `make install` instead of manually copying every files around. It also allows for modifying the compiler we use We can now also modify the build environment if needed
- Loading branch information
1 parent
bc41561
commit 6d9ead9
Showing
2 changed files
with
27 additions
and
13 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
omnibus/config/patches/lmdb/allow-makefile-override-vars.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- a/Makefile 2023-12-06 12:09:29.871461460 +0100 | ||
+++ b/Makefile 2023-12-06 12:10:29.907352846 +0100 | ||
@@ -18,16 +18,16 @@ | ||
# There may be other macros in mdb.c of interest. You should | ||
# read mdb.c before changing any of them. | ||
# | ||
-CC = gcc | ||
-AR = ar | ||
+CC ?= gcc | ||
+AR ?= ar | ||
W = -W -Wall -Wno-unused-parameter -Wbad-function-cast -Wuninitialized | ||
THREADS = -pthread | ||
OPT = -O2 -g | ||
CFLAGS = $(THREADS) $(OPT) $(W) $(XCFLAGS) | ||
LDLIBS = | ||
SOLIBS = | ||
SOEXT = .so | ||
-prefix = /usr/local | ||
+prefix ?= /usr/local | ||
exec_prefix = $(prefix) | ||
bindir = $(exec_prefix)/bin | ||
libdir = $(exec_prefix)/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters