All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Gonzalez Monroy, Sergio" <sergio.gonzalez.monroy@intel.com>
To: Tom Barbette <tom.barbette@ulg.ac.be>
Cc: dev@dpdk.org
Subject: Re: Unsupported --no-as-needed flag
Date: Fri, 12 Jun 2015 12:22:37 +0100	[thread overview]
Message-ID: <557AC0FD.9010504@intel.com> (raw)
In-Reply-To: <CAO1kT8-tc6V7Xfz+ZsUGqf63csSRLEGonSaRTyFahXgMWWb+OQ@mail.gmail.com>

On 12/06/2015 11:55, Tom Barbette wrote:
> Hi list,
>
> Patch http://dpdk.org/dev/patchwork/patch/1056/ introduced the
> --no-as-needed flag, however on debian, and another ubuntu host, neither
> g++ 4.8 or 4.9 know this flag and leads to the error :
>
> g++: error: unrecognized command line option ‘--no-as-needed’
That is a correct error as it is not GCC but an LD flag.
To pass those flags through GCC you have to prefix them with -Wl, so for 
this case it would be:
    -Wl,--no-as-needed

DPDK build framework does the prefixing automatically when it links 
using GCC instead
of directly using LD.

Sergio
> Maybe this comes from a bad inclusion of the dpdk *mk files from my part (
> https://github.com/MappaM/click/blob/master/userlevel/dpdk.mk )? But
> removing the line "--no-as-needed" mk/exec-env/linuxapp/rte.vars.mk solve
> my problem.
>
> Thanks for the help,
>
>
> *Tom Barbette*
> University of Liege

  reply	other threads:[~2015-06-12 11:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-12 10:55 Unsupported --no-as-needed flag Tom Barbette
2015-06-12 11:22 ` Gonzalez Monroy, Sergio [this message]
2015-06-12 13:06   ` Tom Barbette

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=557AC0FD.9010504@intel.com \
    --to=sergio.gonzalez.monroy@intel.com \
    --cc=dev@dpdk.org \
    --cc=tom.barbette@ulg.ac.be \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.