mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 00:54:14 +08:00
mdbx-build: minor fix GNUMakefile for xBSD-compatibility.
Change-Id: Ib97f2d1ea7c439d1e9144fb1a8e3962694682273
This commit is contained in:
parent
647d832556
commit
1f82b4ff21
@ -6,7 +6,7 @@
|
|||||||
# Note that the defaults should already be correct for most platforms;
|
# Note that the defaults should already be correct for most platforms;
|
||||||
# you should not need to change any of these. Read their descriptions
|
# you should not need to change any of these. Read their descriptions
|
||||||
# in README and source code if you do. There may be other macros of interest.
|
# in README and source code if you do. There may be other macros of interest.
|
||||||
SHELL := /bin/bash
|
SHELL := env bash
|
||||||
|
|
||||||
# install sandbox
|
# install sandbox
|
||||||
SANDBOX ?=
|
SANDBOX ?=
|
||||||
@ -21,7 +21,8 @@ suffix ?=
|
|||||||
CC ?= gcc
|
CC ?= gcc
|
||||||
LD ?= ld
|
LD ?= ld
|
||||||
MDBX_OPTIONS ?= -DNDEBUG=1
|
MDBX_OPTIONS ?= -DNDEBUG=1
|
||||||
CFLAGS ?= -Os -g3 -Wall -Werror -Wextra -Wpedantic -ffunction-sections -fPIC -fvisibility=hidden -std=gnu11 -pthread -Wno-tautological-compare
|
CFLAGS ?= -Os -g3 -Wall -Werror -Wextra -Wpedantic -ffunction-sections -fPIC -fvisibility=hidden -std=gnu11 -pthread -Wno-error=attributes
|
||||||
|
# -Wno-tautological-compare
|
||||||
|
|
||||||
# LY: '--no-as-needed,-lrt' for ability to built with modern glibc, but then run with the old
|
# LY: '--no-as-needed,-lrt' for ability to built with modern glibc, but then run with the old
|
||||||
LDFLAGS ?= $(shell $(LD) --help 2>/dev/null | grep -q -- --gc-sections && echo '-Wl,--gc-sections,-z,relro,-O1')$(shell $(LD) --help 2>/dev/null | grep -q -- -dead_strip && echo '-Wl,-dead_strip')
|
LDFLAGS ?= $(shell $(LD) --help 2>/dev/null | grep -q -- --gc-sections && echo '-Wl,--gc-sections,-z,relro,-O1')$(shell $(LD) --help 2>/dev/null | grep -q -- -dead_strip && echo '-Wl,-dead_strip')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user