summaryrefslogtreecommitdiffstats
path: root/libdimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-08-26 12:38:22 -0600
committerTavian Barnes <tavianator@gmail.com>2011-08-26 12:40:10 -0600
commit9686e8f5b65df96f983bd2062a2651137b19d730 (patch)
treea2da67b24d8c937e80075ae419781601bfe92e71 /libdimension
parentd70d039bf5a5ec8b487b8425743e7a82cab1bf95 (diff)
downloaddimension-9686e8f5b65df96f983bd2062a2651137b19d730.tar.xz
Use the AX_PTHREAD macro to detect pthread flags properly.
Diffstat (limited to 'libdimension')
-rw-r--r--libdimension/Makefile.am7
1 files changed, 4 insertions, 3 deletions
diff --git a/libdimension/Makefile.am b/libdimension/Makefile.am
index d6049da..57ff2d8 100644
--- a/libdimension/Makefile.am
+++ b/libdimension/Makefile.am
@@ -21,8 +21,10 @@ SUBDIRS = . \
bench \
tests
+AM_CFLAGS = $(PTHREAD_CFLAGS)
# Make dmnsn_error() backtraces useful
-AM_LDFLAGS = -rdynamic
+AM_LDFLAGS = $(PTHREAD_LIBS) -rdynamic
+CC = $(PTHREAD_CC)
nobase_include_HEADERS = dimension.h \
dimension/array.h \
@@ -111,9 +113,8 @@ libdimension_la_SOURCES = $(nobase_include_HEADERS) \
timer.c \
torus.c \
triangle.c
-libdimension_la_CFLAGS = $(AM_CFLAGS)
libdimension_la_LDFLAGS = -version-info 0:0:0 -no-undefined $(AM_LDFLAGS)
-libdimension_la_LIBADD = -lm -lpthread
+libdimension_la_LIBADD = -lm
if PNG
libdimension_la_SOURCES += png.c