From 4eb06d95d882530375a82edb81b78bf5967b9ea3 Mon Sep 17 00:00:00 2001 From: Matt Fleming Date: Thu, 15 Nov 2012 12:48:34 +0000 Subject: mk: Add -fPIC for x86_64 to embedded.mk Building for x86_64 requires that the object files be compiled with -fPIC, so delete the comment in embedded.mk. With this change we can remove lib.mk and efi.mk from core/Makefile. Signed-off-by: Matt Fleming --- mk/embedded.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mk') diff --git a/mk/embedded.mk b/mk/embedded.mk index 16b2a52b..a4de9ab3 100644 --- a/mk/embedded.mk +++ b/mk/embedded.mk @@ -32,7 +32,7 @@ ifeq ($(ARCH),x86_64) GCCOPT += $(call gcc_ok,-march=x86-64) #let preferred-stack-boundary and incoming-stack-boundary be default(=4) # Somewhere down the line ld barfs requiring -fPIC - #GCCOPT += $(call gcc_ok,-fPIC) + GCCOPT += $(call gcc_ok,-fPIC) endif GCCOPT += $(call gcc_ok,-ffreestanding,) GCCOPT += $(call gcc_ok,-fno-stack-protector,) -- cgit v1.2.3