Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Erik Andersen <andersen@codepoet.org>
To: buildroot@busybox.net
Subject: [Buildroot] Re: toolchains and dependencies to libgcc_s.so.1
Date: Wed Jul 26 12:02:47 2006	[thread overview]
Message-ID: <20060726190151.GB12305@codepoet.org> (raw)
In-Reply-To: <20060726190006.GA12305@codepoet.org>

On Wed Jul 26, 2006 at 01:00:06PM -0600, Erik wrote:
> On Wed Jul 26, 2006 at 09:04:27AM +0200, ayoub zaki wrote:
> > Hi List,
> >  
> >  I have built toolchains for i386/arm/armeb with buildroot,and
> >  when trying to compile a simple hello world I'm getting a
> >  dependency to libgcc_s.so.1for i386/armeb :
> [----------snip-------------]
> >  Is that a bug in gcc or something else ? and how can I build
> >  toolchains without this problem ?
> 
> This is on purpose.  If you don't like it, it can easily be
> changed by telling gcc to staticly link all needed libgcc stuff
> into each app (often making your target system larger, but not
> always).  Anyway...
> 
> $ cd toolchain_build_XXX/gcc-Y.Y.Y/gcc/
> $ ./configure --help | grep libgcc
>   --disable-shared        don't provide a shared libgcc
> 
> The change then that you are looking for is:
> 
> --- buildroot/toolchain/gcc/gcc-uclibc-3.x.mk	(revision 15746)
> +++ buildroot/toolchain/gcc/gcc-uclibc-3.x.mk	(working copy)
> @@ -175,7 +175,7 @@
>  		--host=$(GNU_HOST_NAME) \
>  		--target=$(REAL_GNU_TARGET_NAME) \
>  		--enable-languages=$(TARGET_LANGUAGES) \
> -		--enable-shared \
> +		--disable-shared \
>  		--disable-__cxa_atexit \
>  		--enable-target-optspace \
>  		--with-gnu-ld \
> @@ -294,7 +294,7 @@
>  		--host=$(REAL_GNU_TARGET_NAME) \
>  		--target=$(REAL_GNU_TARGET_NAME) \
>  		--enable-languages=$(TARGET_LANGUAGES) \
> -		--enable-shared \
> +		--disable-shared \
>  		--with-gxx-include-dir=/usr/include/c++ \
>  		--disable-__cxa_atexit \
>  		--enable-target-optspace \

Forwarded to the buildroot list where this was appropriate.

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--

           reply	other threads:[~2006-07-26 12:02 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20060726190006.GA12305@codepoet.org>]

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=20060726190151.GB12305@codepoet.org \
    --to=andersen@codepoet.org \
    --cc=buildroot@busybox.net \
    /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