From f309440cc76eed5f9ba0b6f7d94beea6b1c11761 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 1 Dec 2010 00:48:09 -0500 Subject: Use -lpthread instead of -pthread. --- configure.ac | 2 +- libdimension/Makefile.am | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 6fbf585..533c635 100644 --- a/configure.ac +++ b/configure.ac @@ -23,7 +23,7 @@ AM_INIT_AUTOMAKE([parallel-tests color-tests std-options]) AM_SILENT_RULES([yes]) dnl Use C99 mode with GNU extensions -CFLAGS="-std=gnu99 $CFLAGS" +CFLAGS="-std=gnu99 -D_REENTRANT $CFLAGS" dnl Programs AC_PROG_CC diff --git a/libdimension/Makefile.am b/libdimension/Makefile.am index 74da1c6..049381d 100644 --- a/libdimension/Makefile.am +++ b/libdimension/Makefile.am @@ -102,9 +102,9 @@ libdimension_la_SOURCES = $(nobase_include_HEADERS) \ threads.h \ timer.c \ torus.c -libdimension_la_CFLAGS = $(AM_CFLAGS) -pthread +libdimension_la_CFLAGS = $(AM_CFLAGS) libdimension_la_LDFLAGS = -version-info 0:0:0 -no-undefined $(AM_LDFLAGS) -libdimension_la_LIBADD = -lm +libdimension_la_LIBADD = -lm -lpthread if PNG libdimension_la_SOURCES += png.c @@ -125,7 +125,7 @@ if PGO noinst_LTLIBRARIES = libdimension-pgo.la libdimension_pgo_la_SOURCES = $(libdimension_la_SOURCES) libdimension_pgo_la_LIBADD = $(libdimension_la_LIBADD) -lgcov -libdimension_pgo_la_CFLAGS = $(AM_CFLAGS) -pthread -fprofile-generate=$$(readlink -f $(builddir))/pgo +libdimension_pgo_la_CFLAGS = $(AM_CFLAGS) -fprofile-generate=$$(readlink -f $(builddir))/pgo libdimension_la_CFLAGS += -fprofile-correction -fprofile-use=./pgo -- cgit v1.2.3