aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Romanko <me@blankhex.com>2025-08-28 15:56:52 +0300
committerMikhail Romanko <me@blankhex.com>2025-08-28 15:56:52 +0300
commitb74e61f00d561f172a07bc6484493b0818668fe0 (patch)
tree79ca917518e5f07149f16b6e14327b7f5f3ba32d
parentc716c71542a9ee875a7cfb632020b78aea626f70 (diff)
downloadbhlib-b74e61f00d561f172a07bc6484493b0818668fe0.tar.gz
Fix configure script
-rwxr-xr-xconfigure6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure b/configure
index f90d194..2f82e18 100755
--- a/configure
+++ b/configure
@@ -88,7 +88,7 @@ fi
# Detect OS and platform, because it wasn't specified
os="Unknown"
-if [ -z "$platform" ]; then
+if [ -z "$platform" ]; then
case $(uname) in
Darwin) os="MacOS"; platform="Posix"; ;;
Linux) os="Linux"; platform="Posix"; ;;
@@ -240,7 +240,7 @@ fi
object=${source%%.c}${exe}
object=${object#${source_path}}
printf "%s: %s \$(STATICLIB)\n" $object $source
- printf "\t\$(CC) \$(CFLAGS) -I${source_path}unit/include %s %s \$(STATICLIB) -o %s\n\n" "$source" "${source_path}unit/src/Unit.c" "$object"
+ printf "\t\$(CC) \$(CFLAGS) \$(LDFLAGS) -I${source_path}unit/include \$> %s -o %s\n\n" "${source_path}unit/src/Unit.c" "$object"
done
)
printf "tests: "
@@ -263,7 +263,7 @@ fi
object=${source%%.c}.o
object=${object#${source_path}}
printf "$object: $source\n"
- printf "\t\$(CC) -c \$(CFLAGS) \$< -o \$@\n\n"
+ printf "\t\$(CC) -c \$(CFLAGS) \$> -o \$@\n\n"
done
)
printf "\n\n"