[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 969ae9a 3/4: Added commented debugging flags t
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master 969ae9a 3/4: Added commented debugging flags to tmpfs-config-make |
Date: |
Wed, 7 Sep 2016 17:07:04 +0000 (UTC) |
branch: master
commit 969ae9acac30da489cb9ef4073afa6178824ccf2
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>
Added commented debugging flags to tmpfs-config-make
Ever since we have made the dynamic libraries, it is not possible to easily
run some tools like valgrind any more, so a mere `CFLAGS="-g -O0"' was not
enough. We also need an `LDADD="-static" option at configure time so it
will build static libraries and link them statically to the executable so
it is easier to get to the root of the problem.
So now, whenever debugging is necessary, you can just uncomment the
configure line in `tmpfs-config-make' and run it.
---
tmpfs-config-make | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tmpfs-config-make b/tmpfs-config-make
index 6661d0d..433d2d6 100755
--- a/tmpfs-config-make
+++ b/tmpfs-config-make
@@ -111,9 +111,11 @@ cd $build_dir
-# If a 'Makefile' doesn't exist, then configure Gnuastro:
+# If a 'Makefile' doesn't exist, then configure Gnuastro. If you want to do
+# debugging, then uncomment the ending of the line. Note that static
+# linking is necessary for some tools like Valgrind to give a clean output.
if [ ! -f Makefile ]; then
- $srcdir/configure --srcdir=$srcdir
+ $srcdir/configure --srcdir=$srcdir #CFLAGS="-g -O0" LDFLAGS="-static"
fi