Specs vs static linkage?
Robin Hu
huxw@knight.6test.edu.cn
Wed May 28 09:37:00 GMT 2003
Hi everyone:
I am trying to add a new option into specs file, say -xxxx, for
g++. I'd like to let gcc substitute -xxxx to some compile options and
some libraries. So I modify specs file to:
*cclplus:
%{xxxx: -I/usr/local/include/xxxx }
And then:
*lib:
%{xxxx: -llocal_xxxx}
While I am compiling program without -static option,for example g++
-xxxx t.cpp, my modification just works.
But while -static is given, gcc failed to compile, and I am forced
to compile it via g++ -xxxx t.cpp -llocal_xxxx. This problem should
be due to libraries dependence, how can I avoid it?
More information about the Gcc-help
mailing list