summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2007-11-18 11:59:44 +0000
committerache <ache@FreeBSD.org>2007-11-18 11:59:44 +0000
commit86052f1e7e8e5e32f8b635478b7ad3d91efd1737 (patch)
treee6a17c0ba5bced6871d0f62882e8b3705475501f /gnu
parentf5a81b2cdb4ab68adba58b3a24c0b68c05ea2d80 (diff)
downloadFreeBSD-src-86052f1e7e8e5e32f8b635478b7ad3d91efd1737.zip
FreeBSD-src-86052f1e7e8e5e32f8b635478b7ad3d91efd1737.tar.gz
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
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/cc/cc_tools/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/usr.bin/cc/cc_tools/Makefile b/gnu/usr.bin/cc/cc_tools/Makefile
index 8366a8a..8ff177c 100644
--- a/gnu/usr.bin/cc/cc_tools/Makefile
+++ b/gnu/usr.bin/cc/cc_tools/Makefile
@@ -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}
OpenPOWER on IntegriCloud