45 lines
1.9 KiB
Diff
45 lines
1.9 KiB
Diff
From 91d92903f1cafb0fc6dfc434c907df5d2a776bf2 Mon Sep 17 00:00:00 2001
|
|
From: Denis Arnaud <denis.arnaud_fedora@m4x.org>
|
|
Date: Tue, 29 Oct 2019 16:58:25 +0100
|
|
Subject: [PATCH] [SCons] The debugging flag for GCC is -ggdb, no longer -gdb
|
|
|
|
---
|
|
openpgm/pgm/SConscript.autoconf | 1 +
|
|
openpgm/pgm/SConstruct | 4 ++--
|
|
2 files changed, 3 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/openpgm/pgm/SConscript.autoconf b/openpgm/pgm/SConscript.autoconf
|
|
index 883c1b30..abcfd949 100644
|
|
--- a/openpgm/pgm/SConscript.autoconf
|
|
+++ b/openpgm/pgm/SConscript.autoconf
|
|
@@ -288,6 +288,7 @@ def AutoConf (env):
|
|
settings['HAVE_CLOCK_GETTIME'] = conf.CheckFunc ('clock_gettime');
|
|
settings['HAVE_FTIME'] = conf.CheckFunc ('ftime');
|
|
settings['HAVE_GETTIMEOFDAY'] = conf.CheckFunc ('gettimeofday');
|
|
+ settings['HAVE_TIMESPEC_GET'] = conf.CheckFunc ('timespec_get');
|
|
# Custom checks
|
|
settings['HAVE_PTHREAD_SPINLOCK'] = conf.CheckPthreadSpinlock();
|
|
settings['HAVE_GETPROTOBYNAME_R'] = conf.CheckFunc ('getprotobyname_r');
|
|
diff --git a/openpgm/pgm/SConstruct b/openpgm/pgm/SConstruct
|
|
index a1263e67..d408945c 100644
|
|
--- a/openpgm/pgm/SConstruct
|
|
+++ b/openpgm/pgm/SConstruct
|
|
@@ -112,7 +112,7 @@ release = env.Clone(BUILD = 'release')
|
|
release.Append(CCFLAGS = '-O2')
|
|
|
|
debug = env.Clone(BUILD = 'debug')
|
|
-debug.Append(CCFLAGS = ['-DPGM_DEBUG','-ggdb'], LINKFLAGS = '-gdb')
|
|
+debug.Append(CCFLAGS = ['-DPGM_DEBUG','-ggdb'], LINKFLAGS = '-ggdb')
|
|
|
|
profile = env.Clone(BUILD = 'profile')
|
|
profile.Append(CCFLAGS = ['-O2','-pg'], LINKFLAGS = '-pg')
|
|
@@ -232,7 +232,7 @@ env.Append(BUILDERS = {'StaticSharedLibrary': pic_lib});
|
|
#-----------------------------------------------------------------------------
|
|
|
|
ref_node = 'ref/' + env['BUILD'] + '-' + platform.system() + '-' + platform.machine() + '/';
|
|
-BuildDir(ref_node, '.', duplicate=0)
|
|
+VariantDir(ref_node, '.', duplicate=0)
|
|
|
|
env.Append(CPPPATH = [
|
|
# $(top_builddir)/include
|