Static link failed, Dynamic link works:
for x in src hooks; do cd $x; make all || exit $?; cd ..; done
make[1]: Entering directory '/home/IrtyGo/android/fastboot/initrd/dhcpcd/src'
cc -Llibmd/src -static -Wl,-export-dynamic -o dhcpcd common.o control.o dhcpcd.o duid.o eloop.o logerr.o if.o if-options.o sa.o route.o dhcp-common.o script.o auth.o if-linux.o dhcp.o ipv4.o bpf.o arp.o ipv4ll.o ipv6.o ipv6nd.o dhcp6.o dhcpcd-embedded.o dev.o privsep.o privsep-root.o privsep-control.o privsep-inet.o privsep-bpf.o privsep-linux.o ../compat/crypt/hmac.o ../compat/pidfile.o ../compat/setproctitle.o ../compat/strtoi.o ../compat/strtou.o ../compat/rb.o -lmd -lmd
/usr/bin/ld: cannot find -lmd: No such file or directory
/usr/bin/ld: cannot find -lmd: No such file or directory
/usr/bin/ld: dev.o: in function dev_start2': /home/IrtyGo/android/fastboot/initrd/dhcpcd/src/dev.c:107:(.text+0x116): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/bin/ld: if-options.o: in functionparse_option':
/home/IrtyGo/android/fastboot/initrd/dhcpcd/src/if-options.c:2257:(.text+0x1112): warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: privsep.o: in function `ps_init':
/home/IrtyGo/android/fastboot/initrd/dhcpcd/src/privsep.c:101:(.text+0x31a): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
collect2: error: ld returned 1 exit status
make[1]: [Makefile:73: dhcpcd] Error 1
make[1]: Leaving directory '/home/IrtyGo/android/fastboot/initrd/dhcpcd/src'
make: [Makefile:25: all] Error 2
Static link failed, Dynamic link works: for x in src hooks; do cd $x; make all || exit $?; cd ..; done make[1]: Entering directory '/home/IrtyGo/android/fastboot/initrd/dhcpcd/src' cc -Llibmd/src -static -Wl,-export-dynamic -o dhcpcd common.o control.o dhcpcd.o duid.o eloop.o logerr.o if.o if-options.o sa.o route.o dhcp-common.o script.o auth.o if-linux.o dhcp.o ipv4.o bpf.o arp.o ipv4ll.o ipv6.o ipv6nd.o dhcp6.o dhcpcd-embedded.o dev.o privsep.o privsep-root.o privsep-control.o privsep-inet.o privsep-bpf.o privsep-linux.o ../compat/crypt/hmac.o ../compat/pidfile.o ../compat/setproctitle.o ../compat/strtoi.o ../compat/strtou.o ../compat/rb.o -lmd -lmd /usr/bin/ld: cannot find -lmd: No such file or directory /usr/bin/ld: cannot find -lmd: No such file or directory /usr/bin/ld: dev.o: in function
dev_start2': /home/IrtyGo/android/fastboot/initrd/dhcpcd/src/dev.c:107:(.text+0x116): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/bin/ld: if-options.o: in function
parse_option': /home/IrtyGo/android/fastboot/initrd/dhcpcd/src/if-options.c:2257:(.text+0x1112): warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/bin/ld: privsep.o: in function `ps_init': /home/IrtyGo/android/fastboot/initrd/dhcpcd/src/privsep.c:101:(.text+0x31a): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking collect2: error: ld returned 1 exit status make[1]: [Makefile:73: dhcpcd] Error 1 make[1]: Leaving directory '/home/IrtyGo/android/fastboot/initrd/dhcpcd/src' make: [Makefile:25: all] Error 2