diff options
author | Ulf Hermann <[email protected]> | 2017-03-03 14:06:27 +0100 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2017-05-02 09:39:10 +0000 |
commit | 03a0d9e4e4eaacebbe4abfcb5b196b56b168a3fd (patch) | |
tree | ba0413e65ff2344d179158f0871f417e56c4db6f /config | |
parent | 2136e330bef96512d45b8a85b245b9ea95cf5106 (diff) |
Check native binary format
If our native binary format is not ELF, there is no point in doing the
textrel check and we have to exclude some tests that compile source
code with the native compiler and then check something on the resulting
binary with elfutils.
Change-Id: Ib9c6b63481b40fa07dd741c1bb9dcb5d5a2ac6d1
Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'config')
-rw-r--r-- | config/ChangeLog | 4 | ||||
-rw-r--r-- | config/eu.am | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/config/ChangeLog b/config/ChangeLog index 59569e3e..0f240ea4 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,7 @@ +2017-04-28 Ulf Hermann <[email protected]> + + * eu.am: Disable textrel_check if we're not building ELF files. + 2017-04-27 Ulf Hermann <[email protected]> * eu.am: Use fpic_CFLAGS. diff --git a/config/eu.am b/config/eu.am index bc8c7678..e692341e 100644 --- a/config/eu.am +++ b/config/eu.am @@ -107,7 +107,11 @@ textrel_found = $(textrel_msg); exit 1 else textrel_found = $(textrel_msg) endif +if NATIVE_ELF textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then $(textrel_found); fi +else +textrel_check = +endif print-%: @echo $*=$($*) |