[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-patches
Subject:    another pre-loader fix
From:       Eric Pouech <pouech-eric () wanadoo ! fr>
Date:       2004-05-31 15:27:02
Message-ID: 40BB4EC6.8060203 () wanadoo ! fr
[Download RAW message or body]

linking preloader requires the static libc to be present. Test for it in 
  configuration (maybe patch is a bit too much aggressive if not 
present, but that's a start anyway)

A+

["wpl_ac.diff" (text/x-patch)]

Name:          wpl_ac
ChangeLog:     check that static libc is present (required by new wine preloader)
License:       X11
GenDate:       2004/05/31 15:25:17 UTC
ModifiedFiles: configure.ac
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/configure.ac,v
retrieving revision 1.276
diff -u -u -r1.276 configure.ac
--- configure.ac	28 May 2004 20:59:23 -0000	1.276
+++ configure.ac	31 May 2004 15:24:23 -0000
@@ -903,6 +903,16 @@
           AC_SUBST(LDEXECFLAGS,["-Wl,--export-dynamic"])
         fi
 
+	AC_CACHE_CHECK([whether we can statically link libc], ac_cv_link_static_libc,
+		[WINE_TRY_CFLAGS([-static -nostartfiles],
+		ac_cv_link_static_libc="yes",ac_cv_link_static_libc="no")])
+	if test "$ac_cv_link_static_libc" = "no"
+	then
+	  echo "*** Warning: no static libc installed on your system. Please install!"
+	  echo "*** Aborting configuration."
+	  exit
+	fi
+
         case $host_cpu in
           *i[[3456789]]86*)
             AC_CACHE_CHECK([whether we can relocate the executable to 0x77f00000], ac_cv_ld_reloc_exec,


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic