Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] sudo: honor target cflags/ldflags
@ 2017-05-08  8:14 Pascal de Bruijn
  2017-05-08 10:30 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Pascal de Bruijn @ 2017-05-08  8:14 UTC (permalink / raw)
  To: buildroot

sudo would previously have not been build using flags passed
via BR2_TARGET_OPTIMIZATION.

in our case -fPIE was being ignored.

Signed-off-by: Pascal de Bruijn <p.debruijn@unilogic.nl>
---
 package/sudo/sudo.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/sudo/sudo.mk b/package/sudo/sudo.mk
index 0fcd740..dc15b4f 100644
--- a/package/sudo/sudo.mk
+++ b/package/sudo/sudo.mk
@@ -10,6 +10,7 @@ SUDO_LICENSE = ISC, BSD-3-Clause
 SUDO_LICENSE_FILES = doc/LICENSE
 # This is to avoid sudo's make install from chown()ing files which fails
 SUDO_INSTALL_TARGET_OPTS = INSTALL_OWNER="" DESTDIR="$(TARGET_DIR)" install
+SUDO_CONF_ENV += CFLAGS="$(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)"
 SUDO_CONF_OPTS = \
 	--without-lecture \
 	--without-sendmail \
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-08 10:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-08  8:14 [Buildroot] [PATCH] sudo: honor target cflags/ldflags Pascal de Bruijn
2017-05-08 10:30 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox