fix: hectic: lib building
This commit is contained in:
@@ -54,7 +54,6 @@ esac
|
|||||||
RUN_TESTS=1
|
RUN_TESTS=1
|
||||||
OPTFLAGS="-O2"
|
OPTFLAGS="-O2"
|
||||||
CFLAGS="-Wall -Wextra -Werror -pedantic -fsanitize=address -fanalyzer"
|
CFLAGS="-Wall -Wextra -Werror -pedantic -fsanitize=address -fanalyzer"
|
||||||
LDFLAGS="-lhectic"
|
|
||||||
STD_FLAGS="-std=c99"
|
STD_FLAGS="-std=c99"
|
||||||
COLOR_FLAG=""
|
COLOR_FLAG=""
|
||||||
DEBUG=0
|
DEBUG=0
|
||||||
@@ -98,7 +97,7 @@ case "$MODE" in
|
|||||||
mkdir -p target
|
mkdir -p target
|
||||||
echo "# Build library"
|
echo "# Build library"
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
cc $CFLAGS $OPTFLAGS $STD_FLAGS -c hectic.c -lhectic -o target/hectic.o
|
cc $CFLAGS $OPTFLAGS $STD_FLAGS -c hectic.c -o target/hectic.o
|
||||||
ar rcs target/libhectic.a target/hectic.o
|
ar rcs target/libhectic.a target/hectic.o
|
||||||
;;
|
;;
|
||||||
check)
|
check)
|
||||||
|
|||||||
Reference in New Issue
Block a user