updated build scripts for new Linux build

Build-tools/Do-all-build-steps:
  pass parameters to Do-rpm
Build-tools/Do-compile:
  with-other-libc option
Build-tools/Do-rpm:
  make it "automagically" work on SuSE as well as RedHat
strings/Makefile.am:
  added t_ctype.h to the distribution for now - permanent fix to come later
support-files/mysql.spec.sh:
  changed build to use --with-other-libc
This commit is contained in:
unknown 2002-02-16 11:32:06 -07:00
commit 4e806126da
6 changed files with 60 additions and 8 deletions

View file

@ -186,26 +186,36 @@ sh -c "PATH=\"${MYSQL_BUILD_PATH:-/bin:/usr/bin}\" \
# Use the build root for temporary storage of the shared libraries.
OTHER_LIBC_DIR=/usr/local/mysql-glibc
RBR=$RPM_BUILD_ROOT
MBD=$RPM_BUILD_DIR/mysql-%{mysql_version}
if test -z "$RBR" -o "$RBR" = "/"
then
echo "RPM_BUILD_ROOT has stupid value"
echo "RPM_BUILD_ROOT has insecure value"
exit 1
fi
rm -rf $RBR
mkdir -p $RBR
# Build the shared libraries and mysqld-max
# We need to build shared libraries separate from mysqld-max because we
# are using --with-other-libc
BuildMySQL "--enable-shared --enable-thread-safe-client --with-berkeley-db --with-innodb --with-mysqld-ldflags='-all-static' --with-server-suffix='-Max'"
BuildMySQL "--disable-shared --with-other-libc=$OTHER_LIBC_DIR --with-berkeley-db --with-innodb --with-mysqld-ldflags='-all-static' --with-server-suffix='-Max'"
# Save everything for debug
# tar cf $RBR/all.tar .
# Save shared libraries and mysqld-max
# Save mysqld-max
mv sql/mysqld sql/mysqld-max
nm --numeric-sort sql/mysqld-max > sql/mysqld-max.sym
# Save manual to avoid rebuilding
mv Docs/manual.ps Docs/manual.ps.save
make distclean
mv Docs/manual.ps.save Docs/manual.ps
#now build and save shared libraries
BuildMySQL "--enable-shared --enable-thread-safe-client --without-server "
(cd libmysql/.libs; tar cf $RBR/shared-libs.tar *.so*)
(cd libmysql_r/.libs; tar rf $RBR/shared-libs.tar *.so*)
@ -220,6 +230,7 @@ automake
BuildMySQL "--disable-shared" \
"--with-mysqld-ldflags='-all-static'" \
"--with-client-ldflags='-all-static'" \
"--with-other-libc=$OTHER_LIBC_DIR" \
"--without-berkeley-db --without-innodb"
nm --numeric-sort sql/mysqld > sql/mysqld.sym
@ -416,6 +427,10 @@ fi
%changelog
* Fri Feb 15 2002 Sasha
- changed build to use --with-other-libc
* Fri Apr 13 2001 Monty
- Added mysqld-max to the distribution