From 3414c952b9dea0d22c5cd0f2b3993f12f6114cf8 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Thu, 29 Mar 2012 08:15:20 +0200 Subject: configure: prevent $LDOPTS from stacking up on make reconf. Change-Id: I9af88c5201d60ac8beb9e4a24b9933802ae2a96c --- tools/configure | 6 ++++-- 1 file 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 -- cgit v1.1