From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 56E9F7DFC for ; Thu, 30 Oct 2014 17:50:02 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 30 Oct 2014 09:57:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,287,1413270000"; d="scan'208";a="599169156" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga001.jf.intel.com with ESMTP; 30 Oct 2014 09:58:55 -0700 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id s9UGwsB8028862 for ; Thu, 30 Oct 2014 16:58:54 GMT Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id s9UGwsOX016583 for ; Thu, 30 Oct 2014 16:58:54 GMT Received: (from smonroy@localhost) by sivswdev02.ir.intel.com with id s9UGws9K016579 for dev@dpdk.org; Thu, 30 Oct 2014 16:58:54 GMT From: Sergio Gonzalez Monroy To: dev@dpdk.org Date: Thu, 30 Oct 2014 16:58:54 +0000 Message-Id: <1414688334-16545-1-git-send-email-sergio.gonzalez.monroy@intel.com> X-Mailer: git-send-email 1.8.5.4 Subject: [dpdk-dev] [PATCH] mk: pass MODULE_CFLAGS to BSD module build system X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2014 16:50:04 -0000 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 --- mk/rte.bsdmodule.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/mk/rte.bsdmodule.mk b/mk/rte.bsdmodule.mk index 247ea2c..86b92ff 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.1.0