]> granicus.if.org Git - sudo/commitdiff
Don't use SSP_CFLAGS or PIE_CFLAGS when building mksiglist/mksigname
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 20 Sep 2014 12:46:27 +0000 (06:46 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 20 Sep 2014 12:46:27 +0000 (06:46 -0600)
as they are built with the host compiler which may be different
when cross-compiling.  From Gustavo Zacarias.  Bug 662.

NEWS
lib/util/Makefile.in

diff --git a/NEWS b/NEWS
index 0149a4456dda21efecab4e58179fefa7c34cfe34..b4acd5e3411f46a0311b1143ba3fcb7f33c50f98 100644 (file)
--- 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,
index 104969f884e445c83bd2a7a3e5164b59c17f9341..b978790c6feb77b93fc55a3f4819b559d467efa2 100644 (file)
@@ -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 \