diff options
author | Roger Leigh <rleigh@debian.org> | 2009-03-22 16:55:07 +0000 |
---|---|---|
committer | Roger Leigh <rleigh@debian.org> | 2009-03-22 16:55:07 +0000 |
commit | 727910d8a88adb4b87f4769993f9138dfee9fda5 (patch) | |
tree | efc76be7f6b0867e3b2e1670fd03bbce2f751a6e | |
parent | 3d64691ff2bef67b98067d90104e6a8b10a46962 (diff) | |
download | schroot-727910d8a88adb4b87f4769993f9138dfee9fda5.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.
-rw-r--r-- | scripts/global.mk | 3 |
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) |