* [dpdk-dev] [PATCH] mk: use extra cflags when linking apps with the compiler
@ 2017-04-25 16:10 Gage Eads
2017-04-30 19:52 ` Thomas Monjalon
0 siblings, 1 reply; 2+ messages in thread
From: Gage Eads @ 2017-04-25 16:10 UTC (permalink / raw)
To: dev; +Cc: thomas, john.jacques
From: John Jacques <john.jacques@intel.com>
When using the compiler to link applications, include EXTRA_CFLAGS. This
is needed, for example, when cross-compiling, to pass --sysroot.
GCC cross-compilers built with Yocto don't use the --with-sysroot option,
making it necessary to pass --sysroot command-line option.
Signed-off-by: John Jacques <john.jacques@intel.com>
Signed-off-by: Gage Eads <gage.eads@intel.com>
---
mk/rte.app.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mk/rte.app.mk b/mk/rte.app.mk
index b5215c0..bcaf1b3 100644
--- a/mk/rte.app.mk
+++ b/mk/rte.app.mk
@@ -235,7 +235,7 @@ build: _postbuild
exe2cmd = $(strip $(call dotfile,$(patsubst %,%.cmd,$(1))))
ifeq ($(LINK_USING_CC),1)
-O_TO_EXE = $(CC) -o $@ $(CFLAGS) $(OBJS-y) $(call linkerprefix, \
+O_TO_EXE = $(CC) -o $@ $(CFLAGS) $(EXTRA_CFLAGS) $(OBJS-y) $(call linkerprefix, \
$(LDLIBS) $(LDFLAGS) $(LDFLAGS_$(@)) $(EXTRA_LDFLAGS) \
$(MAPFLAGS))
else
--
2.7.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] [PATCH] mk: use extra cflags when linking apps with the compiler
2017-04-25 16:10 [dpdk-dev] [PATCH] mk: use extra cflags when linking apps with the compiler Gage Eads
@ 2017-04-30 19:52 ` Thomas Monjalon
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2017-04-30 19:52 UTC (permalink / raw)
To: Gage Eads, john.jacques; +Cc: dev
25/04/2017 18:10, Gage Eads:
> From: John Jacques <john.jacques@intel.com>
>
> When using the compiler to link applications, include EXTRA_CFLAGS. This
> is needed, for example, when cross-compiling, to pass --sysroot.
> GCC cross-compilers built with Yocto don't use the --with-sysroot option,
> making it necessary to pass --sysroot command-line option.
>
> Signed-off-by: John Jacques <john.jacques@intel.com>
> Signed-off-by: Gage Eads <gage.eads@intel.com>
Applied, thanks
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-04-30 19:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-25 16:10 [dpdk-dev] [PATCH] mk: use extra cflags when linking apps with the compiler Gage Eads
2017-04-30 19:52 ` 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).