summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-02-02 12:57:06 -0500
committerTavian Barnes <tavianator@gmail.com>2010-02-02 12:57:06 -0500
commit48cf99abba57ac20d32421f57bf04cb96d92bc7c (patch)
treeb0ecd6ba8ffea10f522e663a3b42d43d9cf4d108
parent3da1fe6d2fb07f3f361482d8056e36636dcec3f5 (diff)
downloaddimension-48cf99abba57ac20d32421f57bf04cb96d92bc7c.tar.xz
Add -rdynamic to make backtraces more helpful().
-rw-r--r--dimension/Makefile.am4
-rw-r--r--libdimension/Makefile.am5
2 files changed, 8 insertions, 1 deletions
diff --git a/dimension/Makefile.am b/dimension/Makefile.am
index 6335ce7..71a6c64 100644
--- a/dimension/Makefile.am
+++ b/dimension/Makefile.am
@@ -17,6 +17,9 @@
## along with this program. If not, see <http://www.gnu.org/licenses/>. ##
###########################################################################
+# Make dmnsn_error() backtraces useful
+AM_LDFLAGS = -rdynamic
+
INCLUDES = -I$(top_srcdir)/libdimension
bin_PROGRAMS = dimension
@@ -72,3 +75,4 @@ dimension_SOURCES = directives.y \
utility.h \
y.tab.h
dimension_LDADD = $(top_builddir)/libdimension/libdimension.la
+dimension_LDFLAGS = $(AM_LDFLAGS)
diff --git a/libdimension/Makefile.am b/libdimension/Makefile.am
index 2f1b882..eca9bf1 100644
--- a/libdimension/Makefile.am
+++ b/libdimension/Makefile.am
@@ -17,6 +17,9 @@
## along with this program. If not, see <http://www.gnu.org/licenses/>. ##
###########################################################################
+# Make dmnsn_error() backtraces useful
+AM_LDFLAGS = -rdynamic
+
nobase_include_HEADERS = dimension.h \
dimension/array.h \
dimension/camera.h \
@@ -68,7 +71,7 @@ libdimension_la_SOURCES = $(nobase_include_HEADERS) \
solid_pigment.c \
sphere.c \
texture.c
-libdimension_la_LDFLAGS = -version-info 0:0:0
+libdimension_la_LDFLAGS = -version-info 0:0:0 $(AM_LDFLAGS)
libdimension_la_LIBADD = -lm -lpthread -lpng -lGL
if PGO