public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: walt <w41ter@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user]  Re: Building static libraries
Date: Sun, 13 Dec 2009 14:47:04 -0800	[thread overview]
Message-ID: <hg3qt5$2mf$1@ger.gmane.org> (raw)
In-Reply-To: <20091213201857.48f77322@gmx.net>

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.






  parent reply	other threads:[~2009-12-13 22:48 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-13 19:18 [gentoo-user] Building static libraries Renat Golubchyk
2009-12-13 20:40 ` Albert Hopkins
2009-12-14  0:27   ` Renat Golubchyk
2009-12-13 22:47 ` walt [this message]
2009-12-14  0:27   ` [gentoo-user] " Renat Golubchyk
2009-12-14  1:53     ` Albert Hopkins
2009-12-14  2:19       ` Renat Golubchyk
2009-12-14 18:28     ` walt
2009-12-14 20:19       ` Allan Gottlieb
2009-12-14 20:25       ` Alan McKinnon
2009-12-15  6:53         ` Renat Golubchyk
2009-12-14 21:16       ` Renat Golubchyk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='hg3qt5$2mf$1@ger.gmane.org' \
    --to=w41ter@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox