void-packages/srcpkgs/dhcp/files/003_cross_fix.patch
Enno Boland d030013319 dhcp: fix crossbuild
Who the hell build such a fucked up buildsystem?
2015-03-28 19:56:45 +01:00

12 lines
491 B
Diff

--- lib/export/dns/Makefile.in.orig 2011-05-17 01:47:16.000000000 +0200
+++ lib/export/dns/Makefile.in 2015-03-28 19:34:39.143820772 +0100
@@ -166,7 +166,8 @@ code.h: gen
./gen -s ${srcdir} > code.h
gen: ${srcdir}/gen.c
- ${CC} ${ALL_CFLAGS} ${LDFLAGS} -o $@ ${srcdir}/gen.c ${LIBS}
+ ${BUILD_CC} ${BUILD_CFLAGS} -I${top_srcdir}/lib/isc/include \
+ ${BUILD_CPPFLAGS} ${BUILD_LDFLAGS} -o $@ ${srcdir}/gen.c ${BUILD_LIBS}
#We don't need rbtdb64 for this library
#rbtdb64.@O@: rbtdb.c