[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#646544: guile-1.8: Please link against libpthread at least on hurd-any



Svante Signell, le Wed 16 Nov 2011 16:27:07 +0100, a écrit :
> diff -ur guile-1.8-1.8.8+1/debian/rules guile-1.8-1.8.8
> +1.modified/debian/rules
> --- guile-1.8-1.8.8+1/debian/rules 2011-11-09 06:43:28 +0000
> +++ guile-1.8-1.8.8+1.modified/debian/rules 2011-11-14 17:31:40 +0000
> @@ -60,12 +60,21 @@
>  	INSTALL_PROGRAM += -s
>  endif
>  
> +ifeq (hurd-i386,$(shell dpkg-architecture -qDEB_HOST_ARCH))
> +configure_args = \
> +  --host=$(DEB_HOST_GNU_TYPE) \
> +  --build=$(DEB_BUILD_GNU_TYPE) \
> +  --with-threads=yes \

Well, see the other bug about enabling thread support: the maintainer
said that it would break the ABI, so we can't just do it this way. It'd
rather be

+ifeq (hurd-i386,$(shell dpkg-architecture -qDEB_HOST_ARCH))
+configure_args = \
+  --host=$(DEB_HOST_GNU_TYPE) \
+  --build=$(DEB_BUILD_GNU_TYPE) \
+  --with-threads=no \
+  --disable-error-on-warning \
+  --prefix=/usr LIBS=-lpthread
+else
 configure_args = \
   --host=$(DEB_HOST_GNU_TYPE) \
   --build=$(DEB_BUILD_GNU_TYPE) \
   --with-threads=no \
   --disable-error-on-warning \
   --prefix=/usr
+endif

To just add -lpthread, without completely enabling pthread support.

Samuel


Reply to: