On 12/13/2009 11:18 AM, Renat Golubchyk wrote:
Hi everyone!

I need to build a static binary of a program I wrote. The problem is
that most packages only install dynamic version of the libraries. There
are the "static" and "static-libs" USE flags...

I'm confused (not unusual).  Do you want to create a Gentoo package of
your program that can be added to portage?

USE flags are used only by the Gentoo portage system, not by the compiler
or linker that compiles and links your source code.

If you wrote the program, then you have complete control over the linker
flags (e.g. -static, as Albert mentioned) and those flags usually are
defined in a Makefile (which you create, being the programmer).

I can't be sure, but I think you are confusing Gentoo's USE flags with
gcc's (or ld's) flags, which are entirely different.

Please give more details about what you want to do.




Reply via email to