Fix errors in configure script
This commit is contained in:
8
configure
vendored
8
configure
vendored
@@ -5,6 +5,8 @@
|
|||||||
source_path=""
|
source_path=""
|
||||||
cc=$CC
|
cc=$CC
|
||||||
ar=$AR
|
ar=$AR
|
||||||
|
staticlib=libbh.a
|
||||||
|
dynamiclib=libbh.so
|
||||||
enable_dynamic="no"
|
enable_dynamic="no"
|
||||||
enable_mt="no"
|
enable_mt="no"
|
||||||
enable_lfs="no"
|
enable_lfs="no"
|
||||||
@@ -124,6 +126,7 @@ if [ "$platform" = "Posix" ]; then
|
|||||||
mkdir src/Platform/Posix 2> /dev/null
|
mkdir src/Platform/Posix 2> /dev/null
|
||||||
elif [ "$platform" = "Win32" ]; then
|
elif [ "$platform" = "Win32" ]; then
|
||||||
exe=".exe"
|
exe=".exe"
|
||||||
|
dynamiclib="bh.dll"
|
||||||
sources="$sources:${source_path}src/Platform/Win32/File.c"
|
sources="$sources:${source_path}src/Platform/Win32/File.c"
|
||||||
mkdir src/Platform/Win32 2> /dev/null
|
mkdir src/Platform/Win32 2> /dev/null
|
||||||
else
|
else
|
||||||
@@ -180,12 +183,13 @@ fi
|
|||||||
|
|
||||||
# Generate variables
|
# Generate variables
|
||||||
echo "CC=$cc" > Makefile
|
echo "CC=$cc" > Makefile
|
||||||
|
echo "AR=$ar" >> Makefile
|
||||||
echo "CFLAGS=$cflags" >> Makefile
|
echo "CFLAGS=$cflags" >> Makefile
|
||||||
echo "LDFLAGS=$ldflags" >> Makefile
|
echo "LDFLAGS=$ldflags" >> Makefile
|
||||||
echo "STATICLIB=libbh.a" >> Makefile
|
echo "STATICLIB=$staticlib" >> Makefile
|
||||||
|
|
||||||
if [ "$enable_dynamic" = "yes" ]; then
|
if [ "$enable_dynamic" = "yes" ]; then
|
||||||
echo "DYNAMICLIB=libbh.so" >> Makefile
|
echo "DYNAMICLIB=$dynamiclib" >> Makefile
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set a list of objects
|
# Set a list of objects
|
||||||
|
|||||||
Reference in New Issue
Block a user