summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2007-06-13 15:35:07 +0000
committerNils Wallménius <nils@rockbox.org>2007-06-13 15:35:07 +0000
commitc7f9ca4067f26ba3d0471d50ed3f06b047171b50 (patch)
tree9bfaf2d5019c075ad97540a2beed8d68277ca021 /tools
parentf50bd1151a65b1aeefaeab545187fba29881b800 (diff)
Accept FS#7264 'Build with -Os switch for coldfire targets'.
Introduces MEM_FUNCTION_WRAPPERS(api) macro which adds wrappers functions to a plugin to make plugins link correctly when gcc calls mem* functions directly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13625 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/configure5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/configure b/tools/configure
index 1a84a487ee..d73409d44b 100755
--- a/tools/configure
+++ b/tools/configure
@@ -1470,6 +1470,11 @@ if test "$CC" = "sh-elf-gcc"; then
fi
fi
+if test "$CC" = "m68k-elf-gcc"; then
+ # convert -O to -Os to get smaller binaries!
+ GCCOPTS=`echo $GCCOPTS | sed 's/ -O / -Os /'`
+fi
+
if test "$1" = "--ccache"; then
echo "Enable ccache for building"
ccache="ccache"