Skip to content

Commit 87ecdaa

Browse files
committed
Recognize FreeBSD as OS
1 parent 9be3936 commit 87ecdaa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ done
3434
# Build cg_clif
3535
unset CARGO_TARGET_DIR
3636
unamestr=$(uname)
37-
if [[ "$unamestr" == 'Linux' ]]; then
37+
if [[ "$unamestr" == 'Linux' || "$unamestr" == "FreeBSD" ]]; then
3838
export RUSTFLAGS='-Clink-arg=-Wl,-rpath=$ORIGIN/../lib '$RUSTFLAGS
3939
elif [[ "$unamestr" == 'Darwin' ]]; then
4040
export RUSTFLAGS='-Csplit-debuginfo=unpacked -Clink-arg=-Wl,-rpath,@loader_path/../lib -Zosx-rpath-install-name '$RUSTFLAGS
4141
dylib_ext='dylib'
4242
else
43-
echo "Unsupported os"
43+
echo "Unsupported os $unamestr"
4444
exit 1
4545
fi
4646
if [[ "$CHANNEL" == "release" ]]; then

scripts/config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -e
44

55
unamestr=$(uname)
6-
if [[ "$unamestr" == 'Linux' ]]; then
6+
if [[ "$unamestr" == 'Linux' || "$unamestr" == 'FreeBSD' ]]; then
77
dylib_ext='so'
88
elif [[ "$unamestr" == 'Darwin' ]]; then
99
dylib_ext='dylib'

0 commit comments

Comments
 (0)