From 3a12b8f2dbb206970f1b5261522c6bf7f8346193 Mon Sep 17 00:00:00 2001 From: Radim Kolar Date: Sat, 6 Jun 2020 10:53:38 +0200 Subject: [PATCH] Always link EFENCE in debug build --- ChangeLog | 1 + SConstruct | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5a29787..18efc9d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -15,6 +15,7 @@ Version NEXT correct check for native largefiles. Because we are using unsigned long internaly as pointer to offset for portability, we have to be sure that usingned long is 8 or more bytes long + Always try to link Efence in debug build Version 2.8.1b29 - 24 Aug 2019 added scons command line argument without-fspscan=yes for building diff --git a/SConstruct b/SConstruct index a918151..3f1b18b 100644 --- a/SConstruct +++ b/SConstruct @@ -8,7 +8,6 @@ EnsurePythonVersion(2,7) # set defaults PREFIX='/usr/local' VERSION='2.8.1b30' -EFENCE=False CLIENTS=True env = Environment(CPPPATH='#/include', LIBPATH=['/usr/lib','/usr/local/lib']) @@ -158,9 +157,9 @@ DOCDIR=conf.checkForUserDocdir(DOCDIR) EXAMPLESDIR=DOCDIR+'/examples' EXAMPLESDIR=conf.checkForUserExamplesdir(EXAMPLESDIR) dmode=conf.checkForDebugBuild() -EFENCE = conf.MAINTAINER_MODE(dmode) -if EFENCE == True: - EFENCE=conf.CheckLib("efence","EF_Abort") +if dmode: + conf.CheckLib("efence","EF_Abort") +conf.MAINTAINER_MODE(dmode) conf.checkForLamerPack() CLIENTS=conf.checkForBuildingClients() SERVER=conf.checkForBuildingServer()