Explicitly check for linking format to use for efiemu64 module
authorAndrey Borzenkov <arvidjaar@gmail.com>
Sun, 24 Nov 2013 17:12:17 +0000 (21:12 +0400)
committerAndrey Borzenkov <arvidjaar@gmail.com>
Mon, 25 Nov 2013 18:32:55 +0000 (22:32 +0400)
commitc2b70d098194925ba57abf20e6b30605e56c0f19
tree68db2ce73405d6c0cb17ae057e1cf790f07382e6
parentbee1b5ce3fea2dc03f8ae6371d03e833f6583a57
Explicitly check for linking format to use for efiemu64 module

Similar to check for target linking format, also check for efiemu64
instead of hardcoding -melf_x86_64. This fixes compilation on *BSD
variants. We cannot easily reuse main target check because platforms
are different (main target is 32 bit and efiemu64 - 64 bit).

This commit adds EFIEMU64_LINK_FORMAT that contains detected
link option and is used in efiemu64.o linking instead of hardcoded
value.

Reported-By: Beeblebrox <zaphod@berentweb.com>
configure.ac
grub-core/Makefile.am