1597410b8Schristos# We default to building libraries optimised for size. We use 2597410b8Schristos# -minterlink-mips16 so that the non-MIPS16 libraries can still be 3*05598a80Schristos# linked against partly-MIPS16 code. The -mcode-readable=pcrel option allows 4597410b8Schristos# MIPS16 libraries to run on Harvard-style split I/D memories, so long 5597410b8Schristos# as they have the D-to-I redirect for PC-relative loads. -mno-gpopt 6597410b8Schristos# has two purposes: it allows libraries to be used in situations where 7597410b8Schristos# $gp != our _gp, and it allows them to be built with -G8 while 8*05598a80Schristos# retaining link compatibility with -G0 and -G4. 9*05598a80SchristosCFLAGS_FOR_TARGET += -Os -minterlink-mips16 -mcode-readable=pcrel -mno-gpopt 10*05598a80SchristosCXXFLAGS_FOR_TARGET += -Os -minterlink-mips16 -mcode-readable=pcrel -mno-gpopt 11