summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2006-02-22 09:58:36 +0000
committerPeter Kjellerstedt <peter.kjellerstedt@axis.com>2006-02-22 09:58:36 +0000
commit749dbd6ec8283fb1c31379596d6c8be6f52eb3c7 (patch)
tree12b04042a92cd57aebd2edda8e845e1118c5eb9c /Rules.mak
parent4646645b535aa02181d6ae9b8f042f9f9bfec239 (diff)
* Made it possible to dynamically check for supported linker options
using the check_ld function. * Only use --warn-unresolved-symbols with linkers that support it.
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak3
1 files changed, 3 insertions, 0 deletions
diff --git a/Rules.mak b/Rules.mak
index bc02fb068..a3a1b5f50 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -114,6 +114,9 @@ check_gcc=$(shell \
check_as=$(shell \
if $(CC) -Wa,$(1) -Wa,-Z -c -o /dev/null -xassembler /dev/null > /dev/null 2>&1; \
then echo "-Wa,$(1)"; fi)
+check_ld=$(shell \
+ if $(LD) $(1) -o /dev/null -b binary /dev/null > /dev/null 2>&1; \
+ then echo "$(1)"; fi)
ARFLAGS:=cr