From 9686e8f5b65df96f983bd2062a2651137b19d730 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 26 Aug 2011 12:38:22 -0600 Subject: Use the AX_PTHREAD macro to detect pthread flags properly. --- libdimension/Makefile.am | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libdimension') 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 -- cgit v1.2.3