Hello,
we are using ISC DHCP in our ptxdist project and I have the task to upgrade it from the currently used version 4.1-ESV-R10 to the newer 4.3.6-P1 version. Much has changed in the build of the ISC DHCP from the last used version in our project, and since we are cross compiling from our build server (x86_64) to the targets (one target is a 32 bit PowerPC architecture and the other is a 32 bit ARM target) we need the cross compilation to work properly. The build always fails due to the improper setting of the BUILD_CC and CC environment variables which are required to build a rule called gen in the dhcp-4.3.6-P1/bind/bind-9.9.11-P1/export/dns/Makefile (that rule builds some stuff using the host compiler set through the BUILD_CC environment variable), I have tried to set those variables through the ptxdist/rules/dhcp.make file (adding those environment variables to the DHCP_ENV variable), that doesn't work. Also I have tried to set them through the ptxdist/patches (tried to patch the dhcp-4.3.6-P1/Makefile.in and the dhcp-4.3.6-P1/bind/Makefile.in) the patches get applied and the Makefile prints out the correct compilers, but it still fails in the same gen rule with the same error saying that the BUILD_CC environment variable isn't set. Tried to cross compile it outside of ptxdist on an Debian machine and it finishes normally, so I think that something inside of ptxdist is causing the error.
Could you offer any help/advice/suggestions on this matter, any help would be greatly appreciated?
Thank you