[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 6b4df33: Better debugging in tmpfs-config-make
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master 6b4df33: Better debugging in tmpfs-config-make |
Date: |
Sun, 11 Sep 2016 21:05:42 +0000 (UTC) |
branch: master
commit 6b4df33b3adc44e583330bd3d6eecb4019a2e1bf
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>
Better debugging in tmpfs-config-make
Until now, for debugging, `tmpfs-config-make' would set `LDFLAGS'. However,
GNU Libtool has better and higher-level enable/disable configure options
for this job: `--disable-shared' (for this case). This way, in case the
user needs to put some other values in `LDFLAGS', they can do it freely and
this option is directly given to Libtool's configuration options. The
commented explanations were also updated, inspired for the example in
Libtool's manual (in the `Static-only libraries').
---
tmpfs-config-make | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/tmpfs-config-make b/tmpfs-config-make
index 433d2d6..a283767 100755
--- a/tmpfs-config-make
+++ b/tmpfs-config-make
@@ -111,11 +111,19 @@ cd $build_dir
-# 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 a 'Makefile' doesn't exist, then configure Gnuastro.
+#
+# FOR DEBUGGING: uncomment the second half of this line. Gnuastro uses GNU
+# Libtool to build shared libraries for highly portable and maintainable
+# usage on a wide variety of systems. While this is great for binaries, it
+# can be a pain when trying to debug. For this reason, compilation of
+# shared libraries can be turned off by specifying the --disable-shared
+# option to configure. With static libraries, compilation (the `make'
+# command) will also significantly speed up. Also, by default (in
+# `configure.ac'), we have set optimization flags which have to be
+# cancelled in debugging.
if [ ! -f Makefile ]; then
- $srcdir/configure --srcdir=$srcdir #CFLAGS="-g -O0" LDFLAGS="-static"
+ $srcdir/configure --srcdir=$srcdir #--disable-shared CFLAGS="-g -O0"
fi
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnuastro-commits] master 6b4df33: Better debugging in tmpfs-config-make,
Mohammad Akhlaghi <=