summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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