summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPino Toscano <toscano.pino@tiscali.it>2012-09-30 23:44:24 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-01-25 01:59:05 +0100
commit14eeff65f732d77bc8d93bd5e1979fa6083b66d8 (patch)
tree5e49ab1d8f6405eb92e6f2f9b89bdd4cccdc6b70
parent22b1cf995b0fc12add7e0ea26cb916f1f3c76acd (diff)
New Makefile snippet for the "pthread" sysdep
Hook the libpthread version when compiling glibc's confstr.c, so that confstr can show it. * sysdeps/pthread/Makefile: New file.
-rw-r--r--sysdeps/pthread/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/pthread/Makefile b/sysdeps/pthread/Makefile
new file mode 100644
index 0000000..1c30542
--- /dev/null
+++ b/sysdeps/pthread/Makefile
@@ -0,0 +1,3 @@
+ifeq ($(subdir),posix)
+CFLAGS-confstr.c += -DLIBPTHREAD_VERSION='"libpthread $(pthread-version)"'
+endif