mariadb/netware/BUILD/mwenv
unknown d41b34bf95 Various tool fixes, necessary to build 5.1.12-beta on Netware.
netware/BUILD/compile-AUTOTOOLS:
  Fixes for Netware builds:
  1) The "autotools" used there have problems with changing variables in Makefiles
     after the initial setting.
  2) "storage/innobase" does not need an autotool run any more.
  3) "automake --verbose" may be able to help if new problems arise.
netware/BUILD/compile-netware-START:
  The CSV engine is now mandatory in 5.1, must not be de-configured.
netware/BUILD/mwenv:
  When testing for a possibly empty shell variable, it is mandatory to use quotes!
netware/BUILD/nwbootstrap:
  The "mwenv" file has been changed, reflect these changes here:
  1) It is no longer necessary to set the variables WINE_BUILD_DIR, BUILD_DIR, and VERSION.
  2) The handling of MYDEV there has changed, the "export" line may be indented.
2006-10-12 18:25:27 +02:00

48 lines
1.6 KiB
Bash
Executable file

#! /bin/sh
if test ! -r ./sql/mysqld.cc
then
echo "you must start from the top source directory"
exit 1
fi
# The base path(in wineformat) where compilers, includes and
# libraries are installed
if test -z "$MYDEV"
then
# the default is "F:/mydev"
export MYDEV="F:/mydev"
fi
echo "MYDEV: $MYDEV"
# Get current dir
BUILD_DIR=`pwd`
echo "BUILD_DIR: $BUILD_DIR"
# Get current dir in wine format
base=`echo $MYDEV |sed 's/\/.*//'`
base_unix_part=`winepath -- -u $base/`
WINE_BUILD_DIR=`echo "$BUILD_DIR" | sed 's_'$base_unix_part'/__'`
WINE_BUILD_DIR="$base/$WINE_BUILD_DIR"
echo "WINE_BUILD_DIR: $WINE_BUILD_DIR"
export MWCNWx86Includes="$MYDEV/libc/include;$MYDEV/fs64/headers;$MYDEV/zlib-1.2.3;$WINE_BUILD_DIR/include;$MYDEV"
export MWNWx86Libraries="$MYDEV/libc/imports;$MYDEV/mw/lib;$MYDEV/fs64/imports;$MYDEV/zlib-1.2.3;$MYDEV/openssl;$WINE_BUILD_DIR/netware/BUILD"
export MWNWx86LibraryFiles="libcpre.o;libc.imp;netware.imp;mwcrtl.lib;mwcpp.lib;libz.a;neb.imp;zPublics.imp;knetware.imp"
export WINEPATH="$MYDEV/mw/bin"
# the default added path is "$BUILD_DIR/netware/BUILD"
export PATH="$PATH:$BUILD_DIR/netware/BUILD"
export AR='mwldnlm'
export AR_FLAGS='-type library -o'
export AS='mwasmnlm'
export CC='mwccnlm -gccincludes'
export CFLAGS='-enum int -align 8 -proc 686 -relax_pointers -dialect c'
export CXX='mwccnlm -gccincludes'
export CXXFLAGS='-enum int -align 8 -proc 686 -relax_pointers -dialect c++ -bool on -wchar_t on -D_WCHAR_T'
export LD='mwldnlm'
export LDFLAGS='-entry _LibCPrelude -exit _LibCPostlude -map -flags pseudopreemption'
export RANLIB=:
export STRIP=: