Skip to content

Commit

Permalink
[build] Inhibit "skipping incompatible" message from ld
Browse files Browse the repository at this point in the history
On 64-bit systems with both 32-bit and 64-bit libraries installed, ld
tends to generate noisy "skipping incompatible /usr/lib/libxxx.so"
messages when building elf2efi.c.

Fix by passing --no-warn-search-mismatch to ld.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed May 27, 2010
1 parent ceba975 commit 28f73ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Makefile.housekeeping
Expand Up @@ -873,7 +873,7 @@ CLEANUP += $(ZBIN)
#
ELF2EFI_CFLAGS := -I$(BINUTILS_DIR)/include -I$(BFD_DIR)/include \
-idirafter include -L$(BINUTILS_DIR)/lib -L$(BFD_DIR)/lib \
-lbfd -liberty -lz
-lbfd -liberty -lz -Wl,--no-warn-search-mismatch

$(ELF2EFI32) : util/elf2efi.c $(MAKEDEPS)
$(QM)$(ECHO) " [HOSTCC] $@"
Expand Down

0 comments on commit 28f73ca

Please sign in to comment.