OSDN Git Service

buildsys: Do not error on GNUHASH for clean targets
[uclinux-h8/uClibc.git] / Rules.mak
index 1f05a8a..8912704 100644 (file)
--- a/Rules.mak
+++ b/Rules.mak
@@ -601,7 +601,7 @@ ifeq ($(LDSO_GNU_HASH_SUPPORT),y)
 # Be sure that binutils support it
 LDFLAGS_GNUHASH:=$(call check_ld,--hash-style=gnu)
 ifeq ($(LDFLAGS_GNUHASH),)
-ifneq ($(filter-out install_headers headers-y,$(MAKECMDGOALS)),)
+ifneq ($(filter-out $(clean_targets) install_headers headers-y,$(MAKECMDGOALS)),)
 $(error Your binutils do not support --hash-style option, while you want to use it)
 endif
 else