1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-04 09:09:56 +00:00

Use LC_ALL=C before awk generating "optionlist"

(and before two other awk calls, just to be safe)
Without it sorting is broken for locales with ASCII collating equivalence
like (v,w) in sv_SE
This commit is contained in:
Andrey A. Chernov 2007-11-18 11:59:44 +00:00
parent 23c1e989a6
commit f6d6295dd9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=173731

View File

@ -216,15 +216,15 @@ GENSRCS+= tconfig.h
CLEANFILES+= cs-tconfig.h
# Options
optionlist: ${OPT_FILES}
awk -f ${GCCDIR}/opt-gather.awk ${.ALLSRC} > ${.TARGET}
LC_ALL=C awk -f ${GCCDIR}/opt-gather.awk ${.ALLSRC} > ${.TARGET}
options.h: optionlist
awk -f ${GCCDIR}/opt-functions.awk \
LC_ALL=C awk -f ${GCCDIR}/opt-functions.awk \
-f ${GCCDIR}/opth-gen.awk \
< ${.ALLSRC} > ${.TARGET}
options.c: optionlist
awk -f ${GCCDIR}/opt-functions.awk \
LC_ALL=C awk -f ${GCCDIR}/opt-functions.awk \
-f ${GCCDIR}/optc-gen.awk \
-v header_name="config.h system.h coretypes.h tm.h" \
< ${.ALLSRC} > ${.TARGET}