aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMikhail Romanko <me@blankhex.com>2025-07-29 21:25:24 +0300
committerMikhail Romanko <me@blankhex.com>2025-07-29 21:25:24 +0300
commita576a9260d7e96de6e3234664f21f6a885635373 (patch)
tree2c1b2a070795ac7edd3c099245e3723c28fd7ef3 /configure
parent682abc5664dd03df6f80f81ef89d0ad41d612f5d (diff)
downloadbhlib-a576a9260d7e96de6e3234664f21f6a885635373.tar.gz
Fix errors in configure script
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure b/configure
index 4bc1c0b..136238b 100755
--- a/configure
+++ b/configure
@@ -5,6 +5,8 @@
source_path=""
cc=$CC
ar=$AR
+staticlib=libbh.a
+dynamiclib=libbh.so
enable_dynamic="no"
enable_mt="no"
enable_lfs="no"
@@ -124,6 +126,7 @@ if [ "$platform" = "Posix" ]; then
mkdir src/Platform/Posix 2> /dev/null
elif [ "$platform" = "Win32" ]; then
exe=".exe"
+ dynamiclib="bh.dll"
sources="$sources:${source_path}src/Platform/Win32/File.c"
mkdir src/Platform/Win32 2> /dev/null
else
@@ -180,12 +183,13 @@ fi
# Generate variables
echo "CC=$cc" > Makefile
+echo "AR=$ar" >> Makefile
echo "CFLAGS=$cflags" >> Makefile
echo "LDFLAGS=$ldflags" >> Makefile
-echo "STATICLIB=libbh.a" >> Makefile
+echo "STATICLIB=$staticlib" >> Makefile
if [ "$enable_dynamic" = "yes" ]; then
- echo "DYNAMICLIB=libbh.so" >> Makefile
+ echo "DYNAMICLIB=$dynamiclib" >> Makefile
fi
# Set a list of objects