diff options
Diffstat (limited to 'main/sudo/fix-cross-compile.patch')
-rw-r--r-- | main/sudo/fix-cross-compile.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/main/sudo/fix-cross-compile.patch b/main/sudo/fix-cross-compile.patch new file mode 100644 index 00000000000..89fcd043f1e --- /dev/null +++ b/main/sudo/fix-cross-compile.patch @@ -0,0 +1,15 @@ +--- sudo-1.8.7/compat/Makefile.in.orig ++++ sudo-1.8.7/compat/Makefile.in +@@ -93,10 +93,10 @@ + ./mksigname > $@ + + mksiglist: $(srcdir)/mksiglist.c $(srcdir)/mksiglist.h $(incdir)/missing.h $(top_builddir)/config.h +- $(CC) $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/mksiglist.c -o $@ ++ $${HOSTCC:-gcc} -I$(incdir) -I$(top_builddir) -I$(top_srcdir) $(DEFS) $(srcdir)/mksiglist.c -o $@ + + mksigname: $(srcdir)/mksigname.c $(srcdir)/mksigname.h $(incdir)/missing.h $(top_builddir)/config.h +- $(CC) $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/mksigname.c -o $@ ++ $${HOSTCC:-gcc} -I$(incdir) -I$(top_builddir) -I$(top_srcdir) $(DEFS) $(srcdir)/mksigname.c -o $@ + + fnm_test: fnm_test.o libreplace.la + $(LIBTOOL) --mode=link $(CC) -o $@ fnm_test.o libreplace.la $(PIE_LDFLAGS) $(SSP_LDFLAGS) |