summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2012-06-29 13:09:10 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2012-06-29 13:09:10 (GMT)
commit5e6ec6e319f87c3f3e97d314ea88a181096c451e (patch)
treed27da7bec3bfd2a07f00dea7006757bc5d8e07cf
parent62fe33317bd1001de61dfe4df4c8159ecd1f5be0 (diff)
downloadbuildroot-5e6ec6e319f87c3f3e97d314ea88a181096c451e.tar.gz
buildroot-5e6ec6e319f87c3f3e97d314ea88a181096c451e.tar.bz2
ramspeed: use provided linker flags as well
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/ramspeed/Makefile6
-rw-r--r--package/ramspeed/ramspeed.mk3
2 files changed, 4 insertions, 5 deletions
diff --git a/package/ramspeed/Makefile b/package/ramspeed/Makefile
index acb8cfd..f4a4de6 100644
--- a/package/ramspeed/Makefile
+++ b/package/ramspeed/Makefile
@@ -2,13 +2,13 @@
all: generic
generic: ramspeed.c fltmem.c fltmark.c intmem.c intmark.c
- $(CC) $(CFLAGS) $^ -o ramspeed
+ $(CC) $(CFLAGS) $(LDFLAGS) $^ -o ramspeed
i386: ramspeed.c i386/*.s i386/cpuinfo/*.s
- $(CC) $(CFLAGS) -DI386_ASM $^ -o ramspeed
+ $(CC) $(CFLAGS) -DI386_ASM $(LDFLAGS) $^ -o ramspeed
x86_64: ramspeed.c amd64/*.s
- $(CC) $(CFLAGS) -DAMD64_ASM $^ -o ramspeed
+ $(CC) $(CFLAGS) -DAMD64_ASM $(LDFLAGS) $^ -o ramspeed
clean:
rm -f *.o ramspeed
diff --git a/package/ramspeed/ramspeed.mk b/package/ramspeed/ramspeed.mk
index 9ac21ad..478c2fb 100644
--- a/package/ramspeed/ramspeed.mk
+++ b/package/ramspeed/ramspeed.mk
@@ -10,8 +10,7 @@ RAMSPEED_ARCH = $(if $(BR2_i386),i386)$(if $(BR2_x86_64),x86_64)
define RAMSPEED_BUILD_CMDS
cp -f package/ramspeed/Makefile $(@D)
- CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
- make -C $(@D) $(RAMSPEED_ARCH)
+ $(TARGET_CONFIGURE_OPTS) make -C $(@D) $(RAMSPEED_ARCH)
endef
define RAMSPEED_INSTALL_TARGET_CMDS