From: Todd C. Miller Date: Sat, 20 Sep 2014 12:46:27 +0000 (-0600) Subject: Don't use SSP_CFLAGS or PIE_CFLAGS when building mksiglist/mksigname X-Git-Tag: SUDO_1_8_11^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f5647654dde3898dc5c1dfe9ad2e91365bfeddd7;p=sudo Don't use SSP_CFLAGS or PIE_CFLAGS when building mksiglist/mksigname as they are built with the host compiler which may be different when cross-compiling. From Gustavo Zacarias. Bug 662. --- diff --git a/NEWS b/NEWS index 0149a4456..b4acd5e34 100644 --- a/NEWS +++ b/NEWS @@ -77,6 +77,9 @@ What's new in Sudo 1.8.11 * Fixed a hang when a sudoers source is listed more than once in a single sudoers nsswitch.conf entry. + * Fixed a cross-compilation problem building mksiglist and mksigname. + Bug #662 + What's new in Sudo 1.8.10p3? * Fixed expansion of %p in the prompt for "sudo -l" when rootpw, diff --git a/lib/util/Makefile.in b/lib/util/Makefile.in index 104969f88..b978790c6 100644 --- a/lib/util/Makefile.in +++ b/lib/util/Makefile.in @@ -143,10 +143,10 @@ signame.c: mksigname ./mksigname > $@ mksiglist: $(srcdir)/mksiglist.c $(srcdir)/mksiglist.h $(incdir)/sudo_compat.h $(top_builddir)/config.h - $(CC) $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/mksiglist.c -o $@ + $(CC) $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/mksiglist.c -o $@ mksigname: $(srcdir)/mksigname.c $(srcdir)/mksigname.h $(incdir)/sudo_compat.h $(top_builddir)/config.h - $(CC) $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/mksigname.c -o $@ + $(CC) $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/mksigname.c -o $@ $(srcdir)/mksiglist.h: $(srcdir)/siglist.in @if [ -n "$(DEVEL)" ]; then \