mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-07-30 16:26:33 +08:00
Get a clean run from make --warn-undefined-variables
Except in psasim, which I am not touching at this time. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
f79f4014b6
commit
d78060bda6
@ -95,6 +95,16 @@ $(strip $(shell
|
|||||||
))
|
))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
# Ensure that `THREADING` is always defined. This lets us get a clean run
|
||||||
|
# with `make --warn-undefined-variables` without making the conditionals
|
||||||
|
# below more complex than they already are. At this stage, if `$(THREADING)`
|
||||||
|
# is empty, it means we don't know yet whether the threading implementation
|
||||||
|
# requires extra `LDFLAGS`. Once we've done the analysis, if `$(THREADING)`
|
||||||
|
# is empty, it will mean that no extra `LDFLAGS` are required, either
|
||||||
|
# because threading is disabled or because the threading implementation
|
||||||
|
# doesn't require any extra `LDFLAGS`.
|
||||||
|
THREADING ?=
|
||||||
|
|
||||||
ifdef WINDOWS_BUILD
|
ifdef WINDOWS_BUILD
|
||||||
DLEXT=dll
|
DLEXT=dll
|
||||||
EXEXT=.exe
|
EXEXT=.exe
|
||||||
@ -107,7 +117,7 @@ else # Not building for Windows
|
|||||||
DLEXT ?= so
|
DLEXT ?= so
|
||||||
EXEXT=
|
EXEXT=
|
||||||
SHARED_SUFFIX=
|
SHARED_SUFFIX=
|
||||||
ifndef THREADING
|
ifeq ($(THREADING),)
|
||||||
# Auto-detect configurations with pthread.
|
# Auto-detect configurations with pthread.
|
||||||
# If the call to remove_enabled_options returns "control", the symbols
|
# If the call to remove_enabled_options returns "control", the symbols
|
||||||
# are confirmed set and we link with pthread.
|
# are confirmed set and we link with pthread.
|
||||||
@ -123,6 +133,8 @@ else # Not building for Windows
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
PERL ?= perl
|
||||||
|
|
||||||
ifdef WINDOWS
|
ifdef WINDOWS
|
||||||
PYTHON ?= python
|
PYTHON ?= python
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user