Skip to content

Commit b3b01b5

Browse files
committed
link flex lib for linux statically
1 parent 987687e commit b3b01b5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

exec.sh

+8
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,15 @@ $CUR/pre.sh || exit 255
4444
chrt -b --pid 0 $$
4545
renice 3 $$
4646

47+
4748
echo Running Target script
4849
case "$1" in
4950
linux-native)
51+
export LEXLIB=-Wl,--push-state,-Bstatic,-lfl,--pop-state
5052
exec $CUR/native.sh
5153
;;
5254
linux-native-profile)
55+
export LEXLIB=-Wl,--push-state,-Bstatic,-lfl,--pop-state
5356
exec $CUR/native.sh profile
5457
;;
5558
mingw64-win)
@@ -59,22 +62,27 @@ mingw64-msys2)
5962
exec $CUR/mingw64-ms2.sh
6063
;;
6164
mingw64-cross)
65+
export LEXLIB=-Wl,--push-state,-Bstatic,-lfl,--pop-state
6266
exec $CUR/mingw64.sh
6367
;;
6468
mingw64-legacy-cross)
69+
export LEXLIB=-Wl,--push-state,-Bstatic,-lfl,--pop-state
6570
exec $CUR/mingw64.sh legacy
6671
;;
6772
mingw32-cross)
6873
echo this build is included in mingw64 as multilib/arch now !
6974
exit 0
7075
;;
7176
arm64-cross)
77+
export LEXLIB=-Wl,--push-state,-Bstatic,-lfl,--pop-state
7278
exec $CUR/arm.sh 64
7379
;;
7480
arm32-cross)
81+
export LEXLIB=-Wl,--push-state,-Bstatic,-lfl,--pop-state
7582
exec $CUR/arm.sh 32
7683
;;
7784
musl-cross)
85+
export LEXLIB=-Wl,--push-state,-Bstatic,-lfl,--pop-state
7886
exec $CUR/musl.sh
7987
;;
8088
*)

0 commit comments

Comments
 (0)