GNOME Bugzilla – Bug 387177
gnome-python configure test needs to link to pthread
Last modified: 2007-01-06 15:43:03 UTC
checking for python libraries... not found configure: error: could not find Python headers or library Downstream bug http://bugs.gentoo.org/show_bug.cgi?id=158019 Patch to follow
Created attachment 78571 [details] [review] Link to -pthread
Seems like this is something of a platform-specific patch. Is it *always* required to do -pthread, or is it even always allowed? Based on the hoops that glib uses to figure out the threading flag, I don't think all compilers need or recognize -pthread. Can one use python's own distutils.sysconfig.get_config_vars() function to determine "what are the flags to use here?" instead of trying to write new autoconf tests?
Yes, I agree with dmacks; -lpthread is not very portable, -pthread is even less portable.
Created attachment 78616 [details] [review] Use the same CC that built python Well, the only thing we can use from the python Makefile is the CC line so this patch uses that.
well, I don't like overriding the user's $CC, but I guess we don't have any alternative... thanks.
(In reply to comment #5) > well, I don't like overriding the user's $CC, but I guess we don't have any > alternative... thanks. > Only overriding the CC for the python test - that is it. Maybe python should be putting CC flags required in another var or something?
Could first check if PYTHON_CC is set in env, that way user could override.
Thanks.