Precompiled headers: supply "-x c-header" or "-x c++-header" if available.
Some older versions of gcc give "all.hpp: linker input file unused because linking not done" otherwise, because they don't realize files named *.hpp are headers. Reported-by: Wayne Scott <wsc9tt@gmail.com>
This commit is contained in:
parent
313ac6a51c
commit
1574b11598
5 changed files with 27 additions and 9 deletions
|
|
@ -6,9 +6,10 @@ cat >$3 <<-EOF
|
|||
t="\$1" d="\$2" i="\$3"
|
||||
IFS="$NL"
|
||||
set -f
|
||||
\$CC -o "\$t" -c "\$i" \\
|
||||
\$CC -o "\$t" \\
|
||||
-MMD -MF "\$d" \\
|
||||
\$CPPFLAGS \$CFLAGS \$CXXFLAGS \$FLAGS_PCH \$xCFLAGS \$OPTFLAGS
|
||||
\$CPPFLAGS \$CFLAGS \$CXXFLAGS \$FLAGS_PCH \$xCFLAGS \$OPTFLAGS \\
|
||||
-c "\$i"
|
||||
EOF
|
||||
chmod a+x "$3"
|
||||
redo-stamp <$3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue