summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRoger Leigh <rleigh@debian.org>2009-03-22 16:55:07 +0000
committerRoger Leigh <rleigh@debian.org>2009-03-22 22:59:56 +0000
commit7822f2e229cad78de237d41dd941f7f959fe3c8c (patch)
treea652f176b4b3a2d1681d1bc9f7ee89cc16c3b418 /scripts
parent1d9703d11909b162a44f48ec1131c2b7b548a5ac (diff)
downloadschroot-7822f2e229cad78de237d41dd941f7f959fe3c8c.tar.gz
[build] Compile and link with POSIX thread support
This is not needed on most platforms, but on Alpha appears to be necessary in order to have a working std::tr1::shared_ptr. Without this, it fails due to a failed internal glibc assertion while locking with a pthread mutex during shared_ptr construction.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/global.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/global.mk b/scripts/global.mk
index f17dff66..9d63dde1 100644
--- a/scripts/global.mk
+++ b/scripts/global.mk
@@ -20,5 +20,6 @@
#####################################################################
# Global options for use in all Makefiles.
-AM_CXXFLAGS = -I$(top_srcdir) $(LOCAL_CXXFLAGS) -pedantic -Wall -Wcast-align -Wwrite-strings -Wswitch-default -Wcast-qual -Wunused-variable -Wredundant-decls -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Wold-style-cast -Woverloaded-virtual -fstrict-aliasing
+AM_CXXFLAGS = -I$(top_srcdir) $(LOCAL_CXXFLAGS) $(PTHREAD_CFLAGS) -pedantic -Wall -Wcast-align -Wwrite-strings -Wswitch-default -Wcast-qual -Wunused-variable -Wredundant-decls -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Wold-style-cast -Woverloaded-virtual -fstrict-aliasing
+AM_LDFLAGS = $(LOCAL_LDFLAGS) $(PTHREAD_LIBS)