# HG changeset patch # User Eli Zaretskii # Date 1101579765 0 # Node ID dda469376708a5806d74092f1234466f5852fd75 # Parent 9a25f0f7fd266d44af0d82d1533f114bdb2b92c9 Protect & with "" since & is special for cmd.exe; filter through Sed to remove the quotes. ---------------------------------------------------------------------- diff -r 9a25f0f7fd26 -r dda469376708 config.bat --- a/config.bat Sat Nov 27 17:17:17 2004 +0000 +++ b/config.bat Sat Nov 27 18:22:45 2004 +0000 @@ -161,8 +161,9 @@ Rem See if DECL_ALIGN can be supported with this GCC rm -f junk.c junk.o junk junk.exe echo struct { int i; char *p; } __attribute__((__aligned__(8))) foo; >junk.c -rem Two percent signs because it is a special character for COMMAND.COM -echo int main(void) { return (unsigned long)&foo %% 8; } >>junk.c +rem Two percent signs because it is a special character for COMMAND.COM/CMD +rem Filter thru Sed because "&" is special for CMD.EXE +echo int main(void) { return (unsigned long)"&"foo %% 8; } | sed "s/.&./\&/" >>junk.c gcc -o junk junk.c if not exist junk.exe coff2exe junk junk