From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] mk: pass MODULE_CFLAGS to BSD module build system Date: Wed, 05 Nov 2014 22:49:37 +0100 Message-ID: <5616674.7Bk1rPuL4G@xps13> References: <1414688334-16545-1-git-send-email-sergio.gonzalez.monroy@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: "Gonzalez Monroy, Sergio" Return-path: In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" > > 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 Applied Thanks -- Thomas