Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Commit 7bfbd62

Browse files
committed
arch/loongson2f.sh: fix RUSTFLAGS ...
* Targets MIPS III * Use xgot linkage (see rust-lang/rust#111772)
1 parent 24382c8 commit 7bfbd62

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/loongson2f.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ CFLAGS_GCC_ARCH='-mloongson-mmi -Wa,-mfix-loongson2f-nop '
1212
CFLAGS_GCC_OPTI_LTO="${CFLAGS_COMMON_OPTI_LTO} -flto-partition=none "
1313
LDFLAGS_GCC_OPTI_LTO="${LDFLAGS_COMMON_OPTI_LTO} -mxgot -flto-partition=none "
1414

15+
RUSTFLAGS_COMMON_ARCH='-Ctarget-cpu=mips3 -Ctarget-features=+xgot '
1516
RUSTFLAGS_COMMON_OPTI_LTO="${RUSTFLAGS_COMMON_OPTI_LTO} -Clink-arg=-Wl,-z,notext "
1617

1718
# Position-independent executable buildmode is not available on any mips architecture.

0 commit comments

Comments
 (0)