* [dpdk-dev] [PATCH] mk: pass MODULE_CFLAGS to BSD module build system
@ 2014-10-30 16:58 Sergio Gonzalez Monroy
2014-11-05 14:32 ` De Lara Guarch, Pablo
0 siblings, 1 reply; 3+ messages in thread
From: Sergio Gonzalez Monroy @ 2014-10-30 16:58 UTC (permalink / raw)
To: 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<i8** @__stack_chk_guard> 0 [TF=5] [ID=10]
Reset CFLAGS to MODULE_CFLAGS before building BSD module.
Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
---
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] mk: pass MODULE_CFLAGS to BSD module build system
2014-10-30 16:58 [dpdk-dev] [PATCH] mk: pass MODULE_CFLAGS to BSD module build system Sergio Gonzalez Monroy
@ 2014-11-05 14:32 ` De Lara Guarch, Pablo
2014-11-05 21:49 ` Thomas Monjalon
0 siblings, 1 reply; 3+ messages in thread
From: De Lara Guarch, Pablo @ 2014-11-05 14:32 UTC (permalink / raw)
To: Gonzalez Monroy, Sergio; +Cc: dev
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Sergio Gonzalez
> Monroy
> Sent: Thursday, October 30, 2014 4:59 PM
> To: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH] mk: pass MODULE_CFLAGS to BSD module
> build system
>
> 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<i8** @__stack_chk_guard> 0
> [TF=5] [ID=10]
>
> Reset CFLAGS to MODULE_CFLAGS before building BSD module.
>
> Signed-off-by: Sergio Gonzalez Monroy
> <sergio.gonzalez.monroy@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] mk: pass MODULE_CFLAGS to BSD module build system
2014-11-05 14:32 ` De Lara Guarch, Pablo
@ 2014-11-05 21:49 ` Thomas Monjalon
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2014-11-05 21:49 UTC (permalink / raw)
To: Gonzalez Monroy, Sergio; +Cc: 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<i8** @__stack_chk_guard> 0
> > [TF=5] [ID=10]
> >
> > Reset CFLAGS to MODULE_CFLAGS before building BSD module.
> >
> > Signed-off-by: Sergio Gonzalez Monroy
> > <sergio.gonzalez.monroy@intel.com>
>
> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Applied
Thanks
--
Thomas
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-11-05 21:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-30 16:58 [dpdk-dev] [PATCH] mk: pass MODULE_CFLAGS to BSD module build system Sergio Gonzalez Monroy
2014-11-05 14:32 ` De Lara Guarch, Pablo
2014-11-05 21:49 ` Thomas Monjalon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).