diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-08-26 12:38:22 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-08-26 12:40:10 -0600 |
commit | 9686e8f5b65df96f983bd2062a2651137b19d730 (patch) | |
tree | a2da67b24d8c937e80075ae419781601bfe92e71 /libdimension/Makefile.am | |
parent | d70d039bf5a5ec8b487b8425743e7a82cab1bf95 (diff) | |
download | dimension-9686e8f5b65df96f983bd2062a2651137b19d730.tar.xz |
Use the AX_PTHREAD macro to detect pthread flags properly.
Diffstat (limited to 'libdimension/Makefile.am')
-rw-r--r-- | libdimension/Makefile.am | 7 |
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 |