All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] package/jitterentropy-library: fix build failure due to missing -fPIC
Date: Fri, 25 Oct 2019 18:19:55 +0200	[thread overview]
Message-ID: <8736fgkdas.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <831e0090-8e52-9c2c-6d06-4557d21fde79@mind.be> (Arnout Vandecappelle's message of "Wed, 23 Oct 2019 23:56:29 +0200")

>>>>> "Arnout" == Arnout Vandecappelle <arnout@mind.be> writes:

Hi,

 >> +
 >> define JITTERENTROPY_LIBRARY_BUILD_CMDS
 >> -	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS)
 >> +	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) CFLAGS="$(JITTERENTROPY_LIBRARY_CFLAGS)"

 >  And here we see the actual issue: TARGET_CONFIGURE_OPTS should be passed in the
 > environment instead of as arguments, so the Makefile can add its stuff to it.

 >  Hm, but maybe there are indeed good reasons to override the CFLAGS, because the
 > fstack-protector-all requires support from the toolchain. On the other hand, we
 > probably *do* want to keep the -O0 and -fwrapv flags...

The fstack-protector-* options should be handled by BR2_SSP_* and
hardcoded in the package. Why would we want to use -O0?

-- 
Bye, Peter Korsgaard

  parent reply	other threads:[~2019-10-25 16:19 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-23 11:06 [Buildroot] [PATCH] package/jitterentropy-library: fix build failure due to missing -fPIC Giulio Benetti
2019-10-23 21:56 ` Arnout Vandecappelle
2019-10-24  0:02   ` Matthew Weber
2019-10-24  2:28     ` Matthew Weber
2019-10-24 12:03       ` Matthew Weber
2019-10-25  8:17         ` Matthew Weber
2019-10-25 16:19   ` Peter Korsgaard [this message]
2019-10-25 18:52     ` Arnout Vandecappelle
2019-10-25 19:23       ` Peter Korsgaard
2019-10-25 19:57         ` Arnout Vandecappelle
2019-10-25 23:17           ` Markus Mayer
2019-10-26  0:01             ` Markus Mayer

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=8736fgkdas.fsf@dell.be.48ers.dk \
    --to=peter@korsgaard.com \
    --cc=buildroot@busybox.net \
    /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.