void-packages/srcpkgs/sudo/patches/mksigname-for-host.patch

17 lines
827 B
Diff

mksig{list,name} must be built for the host not target.
--- lib/util/Makefile.in.orig 2015-03-19 17:17:25.578303273 +0100
+++ lib/util/Makefile.in 2015-03-19 17:17:55.059482991 +0100
@@ -146,10 +146,10 @@ signame.c: mksigname
./mksigname > $@
mksiglist: $(srcdir)/mksiglist.c $(srcdir)/mksiglist.h $(incdir)/sudo_compat.h $(top_builddir)/config.h
- $(CC) $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/mksiglist.c -o $@
+ $(BUILD_CC) $(CPPFLAGS) $(BUILD_CFLAGS) $(DEFS) $(srcdir)/mksiglist.c -o $@
mksigname: $(srcdir)/mksigname.c $(srcdir)/mksigname.h $(incdir)/sudo_compat.h $(top_builddir)/config.h
- $(CC) $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/mksigname.c -o $@
+ $(BUILD_CC) $(CPPFLAGS) $(BUILD_CFLAGS) $(DEFS) $(srcdir)/mksigname.c -o $@
$(srcdir)/mksiglist.h: $(srcdir)/siglist.in
@if [ -n "$(DEVEL)" ]; then \