diff options
Diffstat (limited to 'profiles/features/32bit-userland/profile.bashrc')
-rw-r--r-- | profiles/features/32bit-userland/profile.bashrc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/profiles/features/32bit-userland/profile.bashrc b/profiles/features/32bit-userland/profile.bashrc new file mode 100644 index 000000000000..9eebc767690d --- /dev/null +++ b/profiles/features/32bit-userland/profile.bashrc @@ -0,0 +1,9 @@ +# Here we remove any ABI that isn't 32-bit. +case ${PROFILE_ARCH} in + mips64) + # This is for o32 (64-bit kernel, 32-bit userland) so we force -mabi=32 + export CHOST="mips-unknown-linux-gnu" + export CFLAGS="${CFLAGS/-mabi=*/-mabi=32}" + export CXXFLAGS="${CFLAGS}" + ;; +esac |