Re: Testing GLib cross compilation



On Wed, Dec 11, 2002 at 05:41:02PM -0500, Owen Taylor wrote:
> 
> Since my set of cross-compilation environments is rather 
> limited (I have a partially working linux to mingw32 
> environment), I'd appreciate it if people would try out
> the changes so we can make sure that it actually is 
> functional for GLib-2.2.0.
> 
> The changes are in CVS now, or will be in a GLIb-2.1.4
> release that I plan on doing later today.

I tried the glib-2.1.4 tarball.

I configure with --disable-shared --enable-static, and I have
$LIBS set in a crude and special way that requires -lpthread
to appear *before* my $LIBS on the liker command line. Here's
what works for me:

diff -ru glib-2.1.4.orig/configure.in glib-2.1.4/configure.in
--- glib-2.1.4.orig/configure.in	2002-12-11 23:48:08.000000000 +0100
+++ glib-2.1.4/configure.in	2002-12-12 15:21:44.000000000 +0100
@@ -1431,14 +1431,14 @@
 				defattr=pthread_attr_default
 			fi
 			
-			LIBS="$glib_save_LIBS $add_thread_lib"
+			LIBS="$add_thread_lib $glib_save_LIBS"
 			
 			AC_MSG_CHECKING(for pthread_create/pthread_join$IN)
 			AC_TRY_RUN(glib_thread_test,
                                    glib_result=yes,
                                    glib_result=no,
                                    [AC_LINK_IFELSE(glib_thread_test,
-                                                   glib_result=yes
+                                                   glib_result=yes,
                                                    glib_result=no)])
                         AC_MSG_RESULT($glib_result)
 			
@@ -1471,7 +1471,7 @@
                        glib_result=yes,
                        glib_result=no,
                        [AC_LINK_IFELSE(glib_sched_priority_test,
-                                       glib_result=yes
+                                       glib_result=yes,
                                        glib_result=no)])
 	    AC_MSG_RESULT($glib_result)
 
@@ -1579,7 +1579,7 @@
 			fi
 		fi
 	fi
-	LIBS="$LIBS $G_THREAD_LIBS"
+	LIBS="$G_THREAD_LIBS $LIBS"
 	if test x"$have_threads" = xposix; then
 		glib_save_CPPFLAGS="$CPPFLAGS"
 		CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
diff -ru glib-2.1.4.orig/m4macros/glib-gettext.m4 glib-2.1.4/m4macros/glib-gettext.m4
--- glib-2.1.4.orig/m4macros/glib-gettext.m4	2002-12-11 23:49:11.000000000 +0100
+++ glib-2.1.4/m4macros/glib-gettext.m4	2002-12-12 14:49:26.000000000 +0100
@@ -175,8 +175,6 @@
 	  INSTOBJEXT=.mo
 	fi
       fi
-
-      LIBS="$glib_save_LIBS"
     ])
 
     if test "$gt_cv_have_gettext" = "yes" ; then


Regards,
Johannes



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