Fix bug#6820: Don't accept backslashes or quotes on compiler options.
* nt/configure.bat: Err out when the argument of --cflags contains invalid characters (check implemented only for GCC).
This commit is contained in:
parent
c8a66ab831
commit
0521215472
2 changed files with 22 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-09-22 Juanma Barranquero <lekktu@gmail.com>
|
||||
|
||||
* configure.bat: Err out when the argument of --cflags contains
|
||||
invalid characters (check implemented only for GCC). (Bug#6820)
|
||||
|
||||
2010-08-19 Juanma Barranquero <lekktu@gmail.com>
|
||||
|
||||
* addpm.c (add_registry): Create App Paths of type REG_EXPAND_SZ.
|
||||
|
|
|
@ -358,9 +358,25 @@ gcc %cf% -c junk.c
|
|||
@echo gcc %cf% -c junk.c >>config.log
|
||||
gcc %cf% -c junk.c >>config.log 2>&1
|
||||
set cf=
|
||||
if exist junk.o goto gccOk
|
||||
if exist junk.o goto chkuser
|
||||
echo The failed program was: >>config.log
|
||||
type junk.c >>config.log
|
||||
goto nocompiler
|
||||
|
||||
:chkuser
|
||||
rm -f junk.o
|
||||
echo int main (int argc, char *argv[]) {>junk.c
|
||||
echo char *usercflags = "%usercflags%";>>junk.c
|
||||
echo }>>junk.c
|
||||
echo gcc -Werror -c junk.c >>config.log
|
||||
gcc -Werror -c junk.c >>config.log 2>&1
|
||||
if exist junk.o goto gccOk
|
||||
echo.
|
||||
echo Error in --cflags argument: %usercflags%
|
||||
echo Backslashes and quotes cannot be used with --cflags. Please use forward
|
||||
echo slashes for filenames and paths (e.g. when passing directories to -I).
|
||||
rm -f junk.c
|
||||
goto end
|
||||
|
||||
:nocompiler
|
||||
echo.
|
||||
|
|
Loading…
Add table
Reference in a new issue