freebsd-nq/sbin/dhclient/minires/Makefile
Makoto Matsushita 0ed8a30f62 Fix "make release.4" breakage.
src/contrib/isc-dhcp/includes/minires/resolv.h has a 'extern' definition
but it makes an error when linking crunched binary just like this:

	dhclient.lo: In function `MRres_nquery':
	dhclient.lo(.text+0x2dcce): undefined reference to `__h_errno_set'
	dhclient.lo(.text+0x2dd5b): undefined reference to `__h_errno_set'
	dhclient.lo: In function `MRres_nquerydomain':
	dhclient.lo(.text+0x2de53): undefined reference to `__h_errno_set'

The author understands this will be a problem (see comments in resolv.h).
Murray said that the author will fix this, but as a temporary solution,
modifying the source code and not to use __h_errno_set.

BTW, I'm sorry that previous commitlog in src/sbin/dhclient/Makefile should
read "Found by:" instead of "Confirmed by"; I just found that rev 1.15
has a typo so fixed.

Tested on: ushi.jp.FreeBSD.org with today's 5-current source code.
           (belive me, "make release.4" works fine now)
2002-02-28 16:17:18 +00:00

29 lines
771 B
Makefile

# minires
# $FreeBSD$
DIST_DIR= ${.CURDIR}/../../../contrib/isc-dhcp
.PATH: ${DIST_DIR}/minires
LIB= res
INTERNALLIB= true
INTERNALSTATICLIB= true
SRCS= ns_date.c ns_name.c ns_parse%FIXED.c ns_samedomain.c ns_sign.c ns_verify.c \
res_comp.c res_findzonecut.c res_init.c res_mkquery.c res_mkupdate.c \
res_query%FIXED.c res_send.c res_sendsigned.c res_update.c
CFLAGS+= -DHMAC_MD5 -DMINIRES_LIB
NOMAN= true
CLEANFILES+= ns_parse%FIXED.c res_query%FIXED.c
ns_parse%FIXED.c: ns_parse.c
sed 's/struct _ns_flagdata _ns_flagdata/struct _ns_flagdata _ns_flagdata_DONT/' \
${.ALLSRC} > ${.TARGET}
res_query%FIXED.c: res_query.c
sed -e 's/RES_SET_H_ERRNO(\(.*\),\(.*\))/(h_errno = (\1)->res_h_errno = (\2))/' \
${.ALLSRC} > ${.TARGET}
.include <bsd.lib.mk>