input-tools: use provided linker flags as well
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
5e6ec6e319
commit
02c0e82dd6
@ -24,10 +24,12 @@ INPUT_TOOLS_POST_PATCH_HOOKS = INPUT_TOOLS_DEBIAN_PATCHES
|
|||||||
# jscal needs -lm
|
# jscal needs -lm
|
||||||
define INPUT_TOOLS_BUILD_CMDS
|
define INPUT_TOOLS_BUILD_CMDS
|
||||||
for i in $(filter-out jscal,$(INPUT_TOOLS_TARGETS_y)); do \
|
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
|
done
|
||||||
for i in $(filter jscal,$(INPUT_TOOLS_TARGETS_y)); do \
|
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
|
done
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user