[ipxe-devel] [ipxe/ipxe] [build] Do not use WORKAROUND_CFLAGS with HOST_CC when cross-compiling (#80)

Ignat Korchagin notifications at github.com
Thu Oct 11 14:48:05 UTC 2018


WORKAROUND_CFLAGS are populated based on the capabilities and properties of the
target compiler. When cross-compiling, the target compiler and the host compiler
are different, so the WORKAROUND_CFLAGS might not be compatible with the host
compiler.

For example, when cross-compiling for arm64, the current build system adds
`-mabi=lp64` to the WORKAROUND_CFLAGS. Later, when the build system tries to
compile `elf2efi64` tool, the compilation fails, because x86 gcc does not
understand the `-mabi=lp64` flag, which is arm64 specific.

Signed-off-by: Ignat Korchagin <ignat at cloudflare.com>
You can view, comment on, or merge this pull request online at:

  https://github.com/ipxe/ipxe/pull/80

-- Commit Summary --

  * [build] Do not use WORKAROUND_CFLAGS with HOST_CC when cross-compiling

-- File Changes --

    M src/Makefile.housekeeping (5)

-- Patch Links --

https://github.com/ipxe/ipxe/pull/80.patch
https://github.com/ipxe/ipxe/pull/80.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/ipxe/pull/80
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20181011/c8dfe619/attachment.htm>


More information about the ipxe-devel mailing list