File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 34
34
# Build cg_clif
35
35
unset CARGO_TARGET_DIR
36
36
unamestr=$( uname)
37
- if [[ " $unamestr " == ' Linux' ]]; then
37
+ if [[ " $unamestr " == ' Linux' || " $unamestr " == " FreeBSD " ]]; then
38
38
export RUSTFLAGS=' -Clink-arg=-Wl,-rpath=$ORIGIN/../lib ' $RUSTFLAGS
39
39
elif [[ " $unamestr " == ' Darwin' ]]; then
40
40
export RUSTFLAGS=' -Csplit-debuginfo=unpacked -Clink-arg=-Wl,-rpath,@loader_path/../lib -Zosx-rpath-install-name ' $RUSTFLAGS
41
41
dylib_ext=' dylib'
42
42
else
43
- echo " Unsupported os"
43
+ echo " Unsupported os $unamestr "
44
44
exit 1
45
45
fi
46
46
if [[ " $CHANNEL " == " release" ]]; then
Original file line number Diff line number Diff line change 3
3
set -e
4
4
5
5
unamestr=$( uname)
6
- if [[ " $unamestr " == ' Linux' ]]; then
6
+ if [[ " $unamestr " == ' Linux' || " $unamestr " == ' FreeBSD ' ]]; then
7
7
dylib_ext=' so'
8
8
elif [[ " $unamestr " == ' Darwin' ]]; then
9
9
dylib_ext=' dylib'
You can’t perform that action at this time.
0 commit comments