summaryrefslogtreecommitdiff
path: root/netware
diff options
context:
space:
mode:
authorunknown <msvensson@shellback.(none)>2006-10-12 13:28:18 +0200
committerunknown <msvensson@shellback.(none)>2006-10-12 13:28:18 +0200
commitc5cebf205f9eae1d9e94ee2477fab12a3fee432f (patch)
tree17700817da20edbd5551e6a0a6b8715fb4b6da74 /netware
parentbe4d02864a33d0858a812b907cd3042666d17d76 (diff)
downloadmariadb-git-c5cebf205f9eae1d9e94ee2477fab12a3fee432f.tar.gz
Use libc-2003 if available else default to libc
Diffstat (limited to 'netware')
-rwxr-xr-xnetware/BUILD/mwenv15
1 files changed, 13 insertions, 2 deletions
diff --git a/netware/BUILD/mwenv b/netware/BUILD/mwenv
index dd055ad8270..bc797c442ab 100755
--- a/netware/BUILD/mwenv
+++ b/netware/BUILD/mwenv
@@ -26,8 +26,17 @@ 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"
+# Look for libc, MySQL 5.0.x uses libc-2003 by default
+libcdir="$MYDEV/libc-2003"
+if test ! -d $libcdir
+then
+ # The libcdir didn't exist, set default
+ libc_dir="$MYDEV/libc"
+fi
+echo "Using libc in $libc_dir";
+
+export MWCNWx86Includes="$libc_dir/include;$MYDEV/fs64/headers;$MYDEV/zlib-1.2.3;$WINE_BUILD_DIR/include;$MYDEV"
+export MWNWx86Libraries="$libc_dir/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"
@@ -56,3 +65,5 @@ then
export TERM=linux
fi
+# Print all env. variables
+export