mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 22:45:39 +00:00
Use getconf LFS_{CFLAGS,LDFLAGS,LIBS} to get flags to compile lib/dns/gen
On some systems (namely Debian buster armhf) the readdir() call fails with `Value too large for defined data type` unless the _FILE_OFFSET_BITS=64 is defined. The correct way to fix this is to get the appropriate compilation parameters from getconf system interface.
This commit is contained in:
@@ -167,9 +167,14 @@ include/dns/rdatastruct.h: gen \
|
||||
code.h: gen
|
||||
./gen -s ${srcdir} > code.h || { rm -f $@ ; exit 1; }
|
||||
|
||||
gen: LFS_CFLAGS = `getconf LFS_CFLAGS 2>/dev/null`
|
||||
gen: LFS_LDFLAGS = `getconf LFS_LDFLAGS 2>/dev/null`
|
||||
gen: LFS_LIBS = `getconf LFS_LIBS 2>/dev/null`
|
||||
gen: gen.c
|
||||
${BUILD_CC} ${BUILD_CFLAGS} -I${top_srcdir}/lib/isc/include \
|
||||
${BUILD_CPPFLAGS} ${BUILD_LDFLAGS} -o $@ ${srcdir}/gen.c ${BUILD_LIBS}
|
||||
${LFS_CFLAGS} ${LFS_LDFLAGS} \
|
||||
${BUILD_CPPFLAGS} ${BUILD_LDFLAGS} -o $@ ${srcdir}/gen.c \
|
||||
${BUILD_LIBS} ${LFS_LIBS}
|
||||
|
||||
timestamp: include libdns.@A@
|
||||
touch timestamp
|
||||
|
Reference in New Issue
Block a user