Browse Source

build system: workaround for asn.1 generated code defining _REENTRANT again

This works around an issue with recent GCC or GNU libc.  No semantics change.
ENGINE-989
positron 9 months ago
parent
commit
30a08dfa58
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      asn.1/Makefile

+ 12
- 0
asn.1/Makefile View File

@ -9,6 +9,18 @@ CPPFLAGS+=$(CPPFLAGS_GENERATED)
ASN1C_INC+= -I.
ASN1C_OPTIONS = -fincludes-quoted -fcompound-names -pdu=auto
ifeq ($(BUILD_FOR),Linux)
# Some code generated by asn1.c contains unconditional definitions of
# the macro _REENTRANT, which is obsolete but automatically defined for
# compatibility by recent GNU systems (problem observed after updating
# debian sid packages in early 2022).
# Since the macro has not had any useful effect for a long time, an easy
# workaround is preventing multiple definitions by undefining the macro
# on the command line before CPP sees the definition in the generated
# code.
CPPFLAGS+=-U_REENTRANT
endif
DISTRIBUTION = distribution keyreset managedgroup exploration
SYNC = sync keysync trustsync groupsync
STORAGE = storage messagestorage


Loading…
Cancel
Save