aboutsummaryrefslogtreecommitdiffstats
path: root/config/StdGNU.mk
diff options
context:
space:
mode:
authorIan Jackson <ian.jackson@eu.citrix.com>2012-04-11 14:14:11 +0100
committerIan Jackson <ian.jackson@eu.citrix.com>2012-04-11 14:14:11 +0100
commit90b969c2ede4bd5ba3722d0f2a71a77d8380bf80 (patch)
treed80784684a262b3dd427ba9895780af6cc8f19b5 /config/StdGNU.mk
parent862bf6424b9cd460b337cb5e47f16d3581970ff2 (diff)
downloadxen-90b969c2ede4bd5ba3722d0f2a71a77d8380bf80.tar.gz
xen-90b969c2ede4bd5ba3722d0f2a71a77d8380bf80.tar.bz2
xen-90b969c2ede4bd5ba3722d0f2a71a77d8380bf80.zip
tools: Correct PTHREAD options in config/StdGNU.mk
It is not correct to say -lpthread. The correct option is -pthread, which may have sundry other effects on code generation etc. It needs to be passed both to compilation and linking. Fix the configure test to test -pthread, and plumb the resulting flag through to PTHREAD_{CFLAGS,LDFLAGS} in Tools.mk; also substitute PTHREAD_LIBS (although this will currently always be empty). Remove PTHREAD_LIBS setting from StdGNU.mk. Fix the one user (libxc) to use PTHREAD_{CFLAGS,LDFLAGS} too. There are still some other users in tree which pass -pthread or -lpthread by adding it as a literal to their own compiler options. These will be fixed in a later patch. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Roger Pau Monne <roger.pau@entel.upc.edu> Acked-by: Roger Pau Monne <roger.pau@entel.upc.edu> Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Diffstat (limited to 'config/StdGNU.mk')
-rw-r--r--config/StdGNU.mk1
1 files changed, 0 insertions, 1 deletions
diff --git a/config/StdGNU.mk b/config/StdGNU.mk
index e2c9335db4..e2f2e1ef36 100644
--- a/config/StdGNU.mk
+++ b/config/StdGNU.mk
@@ -67,7 +67,6 @@ XEN_CONFIG_DIR = $(CONFIG_DIR)/xen
XEN_SCRIPT_DIR = $(XEN_CONFIG_DIR)/scripts
SOCKET_LIBS =
-PTHREAD_LIBS = -lpthread
UTIL_LIBS = -lutil
DLOPEN_LIBS = -ldl