diff options
Diffstat (limited to 'meta/recipes-core/runit/socklog/cross.patch')
-rw-r--r-- | meta/recipes-core/runit/socklog/cross.patch | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/meta/recipes-core/runit/socklog/cross.patch b/meta/recipes-core/runit/socklog/cross.patch new file mode 100644 index 0000000000..bc0385f54e --- /dev/null +++ b/meta/recipes-core/runit/socklog/cross.patch @@ -0,0 +1,58 @@ +chskshsgr must be built for the host. + +Original at: https://github.com/void-linux/void-packages/blob/master/srcpkgs/socklog/patches/cross.patch + +Upstream-Status: Inappropriate [Cross-compile Specific] +Signed-off-by: Khem Raj <raj.khem@gmail.com> + +--- a/src/Makefile ++++ b/src/Makefile +@@ -117,11 +117,11 @@ byte_rchr.o: byte.h byte_rchr.c compile + byte_zero.o: byte.h byte_zero.c compile + ./compile byte_zero.c + +-chkshsgr: chkshsgr.o load +- ./load chkshsgr ++chkshsgr: chkshsgr.o loadhost ++ ./loadhost chkshsgr + +-chkshsgr.o: chkshsgr.c compile +- ./compile chkshsgr.c ++chkshsgr.o: chkshsgr.c compilehost ++ ./compilehost chkshsgr.c + + choose: choose.sh warn-auto.sh + rm -f choose +@@ -137,6 +137,11 @@ compile: conf-cc print-cc.sh systype war + sh print-cc.sh > compile + chmod 555 compile + ++compilehost: ++ cat warn-auto.sh > compilehost ++ @echo 'gcc -c $${1+"$$@"}' >> compilehost ++ chmod 555 compilehost ++ + direntry.h: choose compile direntry.h1 direntry.h2 trydrent.c + ./choose c trydrent direntry.h1 direntry.h2 > direntry.h + +@@ -198,6 +203,15 @@ load: conf-ld print-ld.sh systype warn-a + sh print-ld.sh > load + chmod 555 load + ++loadhost: ++ rm -f loadhost ++ @echo > loadhost ++ @echo 'systype="`cat systype`"' >> loadhost ++ @echo 'cat warn-auto.sh' >> loadhost ++ @echo 'main="$$1"; shift' >> loadhost ++ @echo 'gcc -o "$$main" "$$main".o $${1+"$$@"}' >> loadhost ++ chmod 555 loadhost ++ + lock_ex.o: compile hasflock.h lock.h lock_ex.c + ./compile lock_ex.c + +@@ -410,4 +424,3 @@ wait_nohang.o: compile haswaitp.h wait_n + + wait_pid.o: compile error.h haswaitp.h wait_pid.c + ./compile wait_pid.c +- |