logo       

Specs vs static linkage?: msg#00260

gcc.help

Subject: Specs vs static linkage?


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?




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise