From 1f82b4ff21b5e03d7387740f769f6fbefe7d873e Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Tue, 5 Nov 2019 04:43:44 +0300 Subject: [PATCH] mdbx-build: minor fix GNUMakefile for xBSD-compatibility. Change-Id: Ib97f2d1ea7c439d1e9144fb1a8e3962694682273 --- GNUmakefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index f6d0edf7..d699fbd6 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -6,7 +6,7 @@ # Note that the defaults should already be correct for most platforms; # 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. -SHELL := /bin/bash +SHELL := env bash # install sandbox SANDBOX ?= @@ -21,7 +21,8 @@ suffix ?= CC ?= gcc LD ?= ld 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 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')