summaryrefslogtreecommitdiff
path: root/gitstatus
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2022-02-07 10:38:49 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2022-02-07 10:38:49 +0300
commita83e53005fcc32f1a1b979ba0d6a18f225aa5d4d (patch)
tree91507f9881e4e617bd04f35989454d8884883c8e /gitstatus
parent8a676a9157d2b0e00e88d06456ac7317f11c0317 (diff)
parent4b21cd06ffeb5706b017c78b13c2eaf40d7deac1 (diff)
Merge commit '4b21cd06ffeb5706b017c78b13c2eaf40d7deac1'
Diffstat (limited to 'gitstatus')
-rwxr-xr-xgitstatus/build31
1 files changed, 23 insertions, 8 deletions
diff --git a/gitstatus/build b/gitstatus/build
index 05b3abc5..e116abb2 100755
--- a/gitstatus/build
+++ b/gitstatus/build
@@ -100,7 +100,7 @@ if [ -n "$gitstatus_install_tools" ]; then
exit 1
fi
;;
- freebsd)
+ freebsd|dragonfly)
command pkg install -y cmake gmake binutils git perl5 wget
;;
openbsd)
@@ -141,7 +141,7 @@ if [ -n "$gitstatus_install_tools" ]; then
fi
cpus="$(command getconf _NPROCESSORS_ONLN 2>/dev/null)" ||
- cpus="$(command sysctl -n hw.ncpu 2>/dev/null)" ||
+ cpus="$(command sysctl -n hw.ncpu 2>/dev/null)" ||
cpus=8
case "$gitstatus_cpu" in
@@ -174,12 +174,21 @@ if 2>/dev/null "$CC" \
fi
command rm -f -- "$workdir"/cc-test "$workdir"/cc-test.o
-if 2>/dev/null "$CC" \
- -fstack-clash-protection -fcf-protection \
- -Werror \
- -c "$workdir"/cc-test.c \
+if 2>/dev/null "$CC" \
+ -fstack-clash-protection \
+ -Werror \
+ -c "$workdir"/cc-test.c \
-o "$workdir"/cc-test.o; then
- cflags="$cflags -fstack-clash-protection -fcf-protection"
+ cflags="$cflags -fstack-clash-protection"
+fi
+
+command rm -f -- "$workdir"/cc-test "$workdir"/cc-test.o
+if 2>/dev/null "$CC" \
+ -fcf-protection \
+ -Werror \
+ -c "$workdir"/cc-test.c \
+ -o "$workdir"/cc-test.o; then
+ cflags="$cflags -fcf-protection"
fi
command rm -f -- "$workdir"/cc-test "$workdir"/cc-test.o
@@ -224,6 +233,12 @@ case "$gitstatus_kernel" in
gitstatus_ldflags="$gitstatus_ldflags ${static_pie:--static}"
libgit2_cmake_flags="$libgit2_cmake_flags -DENABLE_REPRODUCIBLE_BUILDS=ON"
;;
+ dragonfly)
+ gitstatus_cxx=clang++12
+ gitstatus_make=gmake
+ gitstatus_ldflags="$gitstatus_ldflags ${static_pie:--static}"
+ libgit2_cmake_flags="$libgit2_cmake_flags -DENABLE_REPRODUCIBLE_BUILDS=ON"
+ ;;
openbsd)
gitstatus_cxx=eg++
gitstatus_make=gmake
@@ -574,7 +589,7 @@ case "$gitstatus_kernel" in
fi
fi
;;
- freebsd|openbsd|netbsd|darwin)
+ freebsd|openbsd|netbsd|darwin|dragonfly)
if [ -n "$docker_cmd" ]; then
>&2 echo "[error] docker (-d) is not supported on $gitstatus_kernel"
exit 1