为什么 Cygwin 的 GCC 显示每个文件的第一行?

Why does Cygwin's GCC display the first line of every file?

我不是 Cygwin 的普通用户。我安装了 Cygwin 和 Cygwin64 来测试建议的补丁。

这是典型 make 的输出:

User@windows-7-x64 ~/cryptopp
$ make
g++ -DNDEBUG -g -O2 -fPIC -march=native -pipe -c shacal2.cpp
shacal2.cpp:1:0: warning: -fPIC ignored for target (all code is position independent)
 // shacal2.cpp - by Kevin Springle, 2003
 ^
g++ -DNDEBUG -g -O2 -fPIC -march=native -pipe -c seed.cpp
seed.cpp:1:0: warning: -fPIC ignored for target (all code is position independent)
 // seed.cpp - written and placed in the public domain by Wei Dai
 ^
g++ -DNDEBUG -g -O2 -fPIC -march=native -pipe -c shark.cpp
shark.cpp:1:0: warning: -fPIC ignored for target (all code is position independent)
 // shark.cpp - written and placed in the public domain by Wei Dai
 ^
...

Cygwin 的 make 显示它编译的每个文件的第一行。

为什么 Cygwin 的 make 显示每个文件的第一行?我怎样才能阻止这种行为?

输出是由于关于-fPIC命令行选项的警告,正如它所说的。从 makefile 的 CXXFLAGS(或任何地方)中删除 -fPIC 选项,它就会消失。