← Back to team overview

maria-developers team mailing list archive

bzr commit into MariaDB 5.1, with Maria 1.5:maria branch (knielsen:2698)

 

#At lp:maria

 2698 knielsen@xxxxxxxxxxxxxxx	2009-05-06
      Fix a build problem with BUILD/compile-pentium64-max on CentOS/Fedora Core 10 amd64.
      
      On these systems, there is libz.so but no libz.a. Finding libz.so, ./configure decides
      to use system zlib. But since BUILD/compile-pentium64-max builds a fully static binary
      with -all-static, the link of mysqld fails due to missing libz.a.
      
      Fix by using bundled zlib in the build script.
      modified:
        BUILD/compile-pentium64-max

=== modified file 'BUILD/compile-pentium64-max'
--- a/BUILD/compile-pentium64-max	2007-04-11 12:12:00 +0000
+++ b/BUILD/compile-pentium64-max	2009-05-06 09:51:46 +0000
@@ -4,7 +4,10 @@ path=`dirname $0`
 . "$path/SETUP.sh" 
 
 extra_flags="$pentium64_cflags $fast_cflags"
-extra_configs="$pentium_configs $max_configs $static_link"
+# On CentOS/Fedora Core 10 amd64, there is system libz.so but not
+# libz.a, so need to use bundled zlib when building static
+# binary. Hence we use --with-zlib-dir=bundled
+extra_configs="$pentium_configs $max_configs $static_link --with-zlib-dir=bundled"
 CC="$CC --pipe"
 strip=yes
 




Follow ups