浏览代码

- fix install_headers on hosts where ld does not support gnu hash-style but
uClibc is configured to use it.

Bernhard Reutner-Fischer 16 年之前
父节点
当前提交
3760ed8716
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Rules.mak

+ 2 - 0
Rules.mak

@@ -567,7 +567,9 @@ ifeq ($(LDSO_GNU_HASH_SUPPORT),y)
 # Be sure that binutils support it
 # Be sure that binutils support it
 LDFLAGS_GNUHASH:=$(call check_ld,--hash-style=gnu)
 LDFLAGS_GNUHASH:=$(call check_ld,--hash-style=gnu)
 ifeq ($(LDFLAGS_GNUHASH),)
 ifeq ($(LDFLAGS_GNUHASH),)
+ifneq ($(filter-out install_headers,$(MAKECMDGOALS)),)
 $(error Your binutils don't support --hash-style option, while you want to use it)
 $(error Your binutils don't support --hash-style option, while you want to use it)
+endif
 else
 else
 LDFLAGS_NOSTRIP += -Wl,$(LDFLAGS_GNUHASH)
 LDFLAGS_NOSTRIP += -Wl,$(LDFLAGS_GNUHASH)
 endif
 endif