summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2012-06-29 16:27:41 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2012-06-29 16:40:00 +0200
commit02c0e82dd682f70562afee2b6c9b504b199b5db1 (patch)
tree83940645854f0302d98e2b8707c585949422d56d
parent5e6ec6e319f87c3f3e97d314ea88a181096c451e (diff)
input-tools: use provided linker flags as well
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/input-tools/input-tools.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/package/input-tools/input-tools.mk b/package/input-tools/input-tools.mk
index 38db2ea54..4236c7408 100644
--- a/package/input-tools/input-tools.mk
+++ b/package/input-tools/input-tools.mk
@@ -24,10 +24,12 @@ INPUT_TOOLS_POST_PATCH_HOOKS = INPUT_TOOLS_DEBIAN_PATCHES
# jscal needs -lm
define INPUT_TOOLS_BUILD_CMDS
for i in $(filter-out jscal,$(INPUT_TOOLS_TARGETS_y)); do \
- $(TARGET_CC) $(TARGET_CFLAGS) -o $(@D)/$$i $(@D)/utils/$$i.c; \
+ $(TARGET_CC) $(TARGET_CFLAGS) -o $(@D)/$$i $(@D)/utils/$$i.c \
+ $(TARGET_LDFLAGS); \
done
for i in $(filter jscal,$(INPUT_TOOLS_TARGETS_y)); do \
- $(TARGET_CC) $(TARGET_CFLAGS) -o $(@D)/$$i $(@D)/utils/$$i.c -lm; \
+ $(TARGET_CC) $(TARGET_CFLAGS) -o $(@D)/$$i $(@D)/utils/$$i.c \
+ $(TARGET_LDFLAGS) -lm; \
done
endef