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

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}