summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2012-03-29 08:15:20 +0200
committerThomas Martitz <kugel@rockbox.org>2012-03-30 11:23:07 +0200
commit3414c952b9dea0d22c5cd0f2b3993f12f6114cf8 (patch)
tree1b66ab9f4b4f78907ce8c0ff3812b5899736d06d
parent72988f3c0ca39e3ec627b8ebcb1638bdb4926d4c (diff)
downloadrockbox-3414c952b9dea0d22c5cd0f2b3993f12f6114cf8.zip
rockbox-3414c952b9dea0d22c5cd0f2b3993f12f6114cf8.tar.gz
rockbox-3414c952b9dea0d22c5cd0f2b3993f12f6114cf8.tar.bz2
rockbox-3414c952b9dea0d22c5cd0f2b3993f12f6114cf8.tar.xz
configure: prevent $LDOPTS from stacking up on make reconf.
Change-Id: I9af88c5201d60ac8beb9e4a24b9933802ae2a96c
-rwxr-xr-xtools/configure6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/configure b/tools/configure
index 00a7adf..a707623 100755
--- a/tools/configure
+++ b/tools/configure
@@ -10,7 +10,9 @@
# global CC options for all platforms
CCOPTS="-W -Wall -Wundef -O -nostdlib -ffreestanding -Wstrict-prototypes -pipe -std=gnu99"
-# global LD options for all platforms
+# LD options for the core
+LDOPTS=""
+# LD options for the core + plugins
GLOBAL_LDOPTS=""
extradefines=""
@@ -235,7 +237,7 @@ simcc () {
GCCOPTS="$GCCOPTS -fno-builtin -g"
GCCOPTIMIZE=''
- LDOPTS='-lm' # button-sdl.c uses sqrt()
+ LDOPTS='$LDOPTS -lm' # button-sdl.c uses sqrt()
sigaltstack=""
fibers=""
endian="" # endianess of the dap doesnt matter here