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:
parent
23c1e989a6
commit
f6d6295dd9
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user