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