diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2012-12-06 16:10:17 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2012-12-06 16:10:17 +0100 |
commit | 5570044378be21fc67904eb0a049f35a6be867ee (patch) | |
tree | 68d425fb3e33512fdec8d9041bc819a609995a3d | |
parent | 40c5d2104f0c3de5aba3a130b6740287085272b7 (diff) | |
download | ptxdist-5570044378be21fc67904eb0a049f35a6be867ee.tar.gz ptxdist-5570044378be21fc67904eb0a049f35a6be867ee.tar.xz |
calibrator: set LDLIBS=-m instead of LDFLAGS=-m
Otherwise building may fail with:
arm-1136jfs-linux-gnueabi-gcc -lm calibrator.c -o calibrator
/tmp/ccF52ORo.o: In function `analyzeCache':
calibrator.c:(.text+0x2398): undefined reference to `log10'
calibrator.c:(.text+0x23d0): undefined reference to `log10'
For newer compilers (e.g. gcc-4.7) the libs must be specified after
source/object files.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | rules/calibrator.make | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/calibrator.make b/rules/calibrator.make index e9affa915..da9fdb753 100644 --- a/rules/calibrator.make +++ b/rules/calibrator.make @@ -29,7 +29,7 @@ CALIBRATOR_DIR := $(BUILDDIR)/$(CALIBRATOR) # ---------------------------------------------------------------------------- CALIBRATOR_PATH := PATH=$(CROSS_PATH) -CALIBRATOR_MAKE_ENV := $(CROSS_ENV) LDFLAGS=-lm +CALIBRATOR_MAKE_ENV := $(CROSS_ENV) LDLIBS=-lm CALIBRATOR_MAKE_OPT := calibrator # ---------------------------------------------------------------------------- |