Mike Meyer wrote:

> I can tell you what went wrong with the first command: it needs the
> FreeBSDism "-pthread" to link with the threaded version of libc.

That means we'll need to fix the configure script. Thanks for debugging! Can
you test the attached (untested) patch? Don't forget to run autogen.sh.

I also think that we should set FATAL=1 in qt.m4. That would give a sensible
error message. It is nonsense to compile for qt when the resulting
executable cannot be linked.

> Again, this worked without patching in 1.3.5.

Strange.


Georg
Index: config/qt.m4
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/config/qt.m4,v
retrieving revision 1.15
diff -u -p -r1.15 qt.m4
--- config/qt.m4	17 Jul 2005 23:40:08 -0000	1.15
+++ config/qt.m4	13 Sep 2005 12:31:19 -0000
@@ -114,6 +114,12 @@ AC_DEFUN([QT_CHECK_COMPILE],
 			QT_TRY_LINK($libname)
 			if test -n "$qt_cv_libname"; then
 				break;
+			else
+				dnl on FreeBSD we need -pthread for threaded libs
+				QT_TRY_LINK("$libname -pthread")
+				if test -n "$qt_cv_libname"; then
+					break;
+				fi
 			fi
 		done
 

Reply via email to