Page MenuHomeFreeBSD

D48880.diff
No OneTemporary

D48880.diff

diff --git a/bin/csh/Makefile b/bin/csh/Makefile
--- a/bin/csh/Makefile
+++ b/bin/csh/Makefile
@@ -121,9 +121,14 @@
tc.defs.c: gethost
DEPENDOBJS+= gethost
-gethost: gethost.c sh.err.h tc.const.h sh.h ${BUILD_TOOLS_META}
+gethost: gethost.c sh.err.h sh.h ${BUILD_TOOLS_META}
@rm -f ${.TARGET}
+ # Define _h_tc_const so that tc.h will skip including tc.const.h.
+ # gethost.c does not actually require any of the definitions in there,
+ # and building tc.const.h requires target headers which are not
+ # available when we need to build gethost.
${HOST_CC:N${CCACHE_BIN}} -o gethost ${LDFLAGS} ${CFLAGS:C/-DHAVE_ICONV//} \
+ -D_h_tc_const \
${TCSHDIR}/gethost.c
.endif

File Metadata

Mime Type
text/plain
Expires
Fri, Feb 14, 12:06 AM (5 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16566802
Default Alt Text
D48880.diff (690 B)

Event Timeline