From 9867fd32616d7da62ea2f1a75a5e0f7462bf2e93 Mon Sep 17 00:00:00 2001 From: Sergio Gonzalez Monroy Date: Thu, 30 Oct 2014 16:58:54 +0000 Subject: [PATCH] mk: fix bsd module build When building shared libs (for both GCC and CLANG targets), -fPIC flag has been added to CFLAGS and leaks to BSD module build system causing the following error: fatal error: error in backend: Cannot select: 0x802ad8010: i64 = X86ISD::WrapperRIP 0x802ade110 [ID=13] 0x802ade110: i64 = TargetGlobalAddress 0 [TF=5] [ID=10] Reset CFLAGS to MODULE_CFLAGS before building BSD module. Signed-off-by: Sergio Gonzalez Monroy Acked-by: Pablo de Lara --- mk/rte.bsdmodule.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/mk/rte.bsdmodule.mk b/mk/rte.bsdmodule.mk index 247ea2c81d..86b92ff5d3 100644 --- a/mk/rte.bsdmodule.mk +++ b/mk/rte.bsdmodule.mk @@ -47,6 +47,7 @@ include $(RTE_SDK)/mk/internal/rte.depdirs-pre.mk # DPDK uses a more up-to-date gcc, so clear the override here. unexport CC +override CFLAGS = $(MODULE_CFLAGS) # VPATH contains at least SRCDIR VPATH += $(SRCDIR) -- 2.20.1