Skip to content
This repository has been archived by the owner on Apr 10, 2019. It is now read-only.

Commit

Permalink
build: drop unsupported PIC compilation
Browse files Browse the repository at this point in the history
-fPIC is the default for COFF targets. clang complains if you specify
it, so lets drop it.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
  • Loading branch information
David Herrmann committed Dec 4, 2018
1 parent f383a87 commit 7854449
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/x86_64-unknown-uefi.mesoncross.ini
Expand Up @@ -11,8 +11,7 @@
#
# - We need to disable the red-zone, as must be able to serve timer
# interrupts. Similarly, we disable the stack-protector and compile as
# free-standing binary. Lastly, UEFI requires applications to be relocatable
# so make sure we compile in PIC mode.
# free-standing binary.
#
# - UEFI uses UCS-2 strings, so use the 'short-wchar' option to allow use of
# wide-string literals in combination with UEFI APIs.
Expand Down Expand Up @@ -45,7 +44,6 @@ c_args =
'-fno-stack-protector',
'-ffreestanding',
'-fshort-wchar',
'-fpic',
'-mno-red-zone',
'-mno-mmx',
'-mno-sse',
Expand Down

0 comments on commit 7854449

Please sign in to comment.