~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to netware/BUILD/mwenv

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
if test ! -r ./sql/mysqld.cc
 
4
then
 
5
  echo "you must start from the top source directory"
 
6
  exit 1
 
7
fi
 
8
 
 
9
# The base path(in wineformat) where compilers, includes and
 
10
# libraries are installed
 
11
if test -z "$MYDEV"
 
12
then
 
13
  # the default is "F:/mydev"
 
14
  export MYDEV="F:/mydev"
 
15
fi
 
16
echo "MYDEV: $MYDEV"
 
17
 
 
18
# Get current dir
 
19
BUILD_DIR=`pwd`
 
20
echo "BUILD_DIR: $BUILD_DIR"
 
21
 
 
22
# Get current dir in wine format
 
23
base=`echo $MYDEV  |sed 's/\/.*//'`
 
24
base_unix_part=`winepath -- -u $base/`
 
25
WINE_BUILD_DIR=`echo "$BUILD_DIR" | sed 's_'$base_unix_part'/__'`
 
26
WINE_BUILD_DIR="$base/$WINE_BUILD_DIR"
 
27
echo "WINE_BUILD_DIR: $WINE_BUILD_DIR"
 
28
 
 
29
# Look for libc, MySQL 5.1.x uses libc-2006 by default
 
30
libc_dir="$MYDEV/libc-2006"
 
31
if [ ! -d `winepath $libc_dir` ]
 
32
then
 
33
  # The libcdir didn't exist, set default
 
34
  libc_dir="$MYDEV/libc"
 
35
fi
 
36
echo "Using libc in $libc_dir";
 
37
 
 
38
export MWCNWx86Includes="$libc_dir/include;$MYDEV/fs64/headers;$MYDEV/zlib-1.2.3;$WINE_BUILD_DIR/include;$MYDEV"
 
39
export MWNWx86Libraries="$libc_dir/imports;$MYDEV/mw/lib;$MYDEV/fs64/imports;$MYDEV/zlib-1.2.3;$MYDEV/openssl;$WINE_BUILD_DIR/netware/BUILD"
 
40
export MWNWx86LibraryFiles="libcpre.o;libc.imp;netware.imp;mwcrtl.lib;mwcpp.lib;libz.a;neb.imp;zPublics.imp;knetware.imp"
 
41
 
 
42
export WINEPATH="$MYDEV/mw/bin"
 
43
 
 
44
# the default added path is "$BUILD_DIR/netware/BUILD"
 
45
export PATH="$PATH:$BUILD_DIR/netware/BUILD"
 
46
 
 
47
export AR='mwldnlm'
 
48
export AR_FLAGS='-type library -o'
 
49
export AS='mwasmnlm'
 
50
export CC='mwccnlm -gccincludes'
 
51
export CFLAGS='-enum int -align 8 -proc 686 -relax_pointers -dialect c'
 
52
export CXX='mwccnlm -gccincludes'
 
53
export CXXFLAGS='-enum int -align 8 -proc 686 -relax_pointers -dialect c++ -bool on -wchar_t on -D_WCHAR_T'
 
54
export LD='mwldnlm'
 
55
export LDFLAGS='-entry _LibCPrelude -exit _LibCPostlude -map -flags pseudopreemption'
 
56
export RANLIB=:
 
57
export STRIP=:
 
58
 
 
59
#
 
60
# Check that TERM has been set to avoid problem "Error opening
 
61
# terminal: unknown" when the script is executed using non interactive ssh
 
62
#
 
63
if test -z "$TERM" -o "$TERM"=dumb
 
64
then
 
65
  export TERM=linux
 
66
fi
 
67
 
 
68
# Temporary hack to allow building from source dist
 
69
if [ "$USER"=pushbuild ]
 
70
then
 
71
  export ARFLAGS=$AR_FLAGS
 
72
fi
 
73
 
 
74
# Print all env. variables
 
75
export