summaryrefslogtreecommitdiff
path: root/system/sudo/fix-cross-compile.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-02-20 22:01:10 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-02-20 22:01:10 -0600
commit0007a6ccd7d5975b19c9033eb7bc2ce3aa98f35b (patch)
tree114e3144b06ed49b8a131872836d222f7b68a259 /system/sudo/fix-cross-compile.patch
parent6d7203982c05651f748825deb393eb6480c03e32 (diff)
downloadpackages-0007a6ccd7d5975b19c9033eb7bc2ce3aa98f35b.tar.gz
packages-0007a6ccd7d5975b19c9033eb7bc2ce3aa98f35b.tar.bz2
packages-0007a6ccd7d5975b19c9033eb7bc2ce3aa98f35b.tar.xz
packages-0007a6ccd7d5975b19c9033eb7bc2ce3aa98f35b.zip
system/sudo: add PAM-enabled sudo
Diffstat (limited to 'system/sudo/fix-cross-compile.patch')
-rw-r--r--system/sudo/fix-cross-compile.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/system/sudo/fix-cross-compile.patch b/system/sudo/fix-cross-compile.patch
new file mode 100644
index 000000000..d2fc97cca
--- /dev/null
+++ b/system/sudo/fix-cross-compile.patch
@@ -0,0 +1,15 @@
+--- ./lib/util/Makefile.in.orig
++++ ./lib/util/Makefile.in
+@@ -160,10 +160,10 @@
+ ./mksigname > $@
+
+ mksiglist: $(srcdir)/mksiglist.c $(srcdir)/mksiglist.h $(incdir)/sudo_compat.h $(top_builddir)/config.h
+- $(CC) $(CPPFLAGS) $(CFLAGS) $(srcdir)/mksiglist.c -o $@
++ $${HOSTCC:-gcc} $(CPPFLAGS) $(CFLAGS) $(srcdir)/mksiglist.c -o $@
+
+ mksigname: $(srcdir)/mksigname.c $(srcdir)/mksigname.h $(incdir)/sudo_compat.h $(top_builddir)/config.h
+- $(CC) $(CPPFLAGS) $(CFLAGS) $(srcdir)/mksigname.c -o $@
++ $${HOSTCC:-gcc} $(CPPFLAGS) $(CFLAGS) $(srcdir)/mksigname.c -o $@
+
+ $(srcdir)/mksiglist.h: $(srcdir)/siglist.in
+ @if [ -n "$(DEVEL)" ]; then \