summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutil/xcompile/xcompile4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index 3c3b1a4e2f..fc221b1f4d 100755
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -144,6 +144,10 @@ detect_special_flags() {
# specify -mmsse, etc flags.
CFLAGS="$CFLAGS -march=i686"
;;
+ mipsel)
+ testcc "$CC" "$CFLAGS -mno-abicalls -fno-pic" && \
+ CFLAGS+=" -mno-abicalls -fno-pic"
+ ;;
esac
}