X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.5 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <30838541.post@talk.nabble.com>
References: <20101017005857.GA28900@const.famille.thibault.fr>	<2BF01EB27B56CC478AD6E5A0A28931F201762C09@A1DAL1SWPES19MB.ams.acs-inc.net>	<20101018125833.GB25504@const>	<252576.94771.qm@web25508.mail.ukl.yahoo.com>	<20101018213923.GO6369@const.famille.thibault.fr>	<30838541.post@talk.nabble.com>
Date: Thu, 3 Feb 2011 20:48:45 +0100
Message-ID: <AANLkTim2+0Z8iRFBCrUsKxDwhJu8HGxSByxPLAiLtkzY@mail.gmail.com>
Subject: Re: -static not working with gcc 4.3.4
From: marco atzeri <marco.atzeri@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Thu, Feb 3, 2011 at 8:34 PM, gvidaver  wrote:

what is a new game to continue a thread after 3-4 months ?

>
> It still requires the cygwin1.dll:

of course it is a cygwin program built by the gcc for cygwin .

>
> $ g++ -v
> ...
> gcc version 4.5.0 (GCC)
>
> $ g++ test.c -o test -static
>
> $ ldd test.exe
> =A0 =A0 =A0 =A0...
> =A0 =A0 =A0 =A0cygwin1.dll =3D> /usr/bin/cygwin1.dll (0x61000000)
> =A0 =A0 =A0 =A0...
>
> And apparently the only alternative is mingw, see:
>
> http://cygwin.com/faq/faq-nochunks.html#faq.programming.static-linking
> "it is not possible to statically link with a Cygwin library to obtain an
> independent, self-contained executable. "
>
> $ i686-w64-mingw32-g++ -v
> ...
> gcc version 4.5.1 (GCC)
>
> $ i686-w64-mingw32-g++ test.c -o test -static
>
> $ ldd test.exe
> =A0 =A0 =A0 =A0ntdll.dll =3D> ... path to Windows dlls
> =A0 =A0 =A0 =A0kernel32.dll =3D> ...
> =A0 =A0 =A0 =A0KERNELBASE.dll =3D> ...
> =A0 =A0 =A0 =A0msvcrt.dll =3D> ...
>
> (I.e. no dependencies on anything besides system dlls.)
>
>
> Samuel Thibault wrote:
>>
>> Marco Atzeri, le Mon 18 Oct 2010 14:22:02 +0100, a =E9crit :
>>> have you checked if 4.5 has the same problem ?
>>>
>>> http://cygwin.com/ml/cygwin-announce/2010-08/msg00016.html
>>
>> It doesn't have the problem any more.
>>
>> Samuel
>>
>> --
>> Problem reports: =A0 =A0 =A0 http://cygwin.com/problems.html
>> FAQ: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http://cygwin.com/faq/
>> Documentation: =A0 =A0 =A0 =A0 http://cygwin.com/docs.html
>> Unsubscribe info: =A0 =A0 =A0http://cygwin.com/ml/#unsubscribe-simple
>>
>>
>>
>
> --
> View this message in context: http://old.nabble.com/-static-not-working-w=
ith-gcc-4.3.4-tp29981383p30838541.html
> Sent from the Cygwin list mailing list archive at Nabble.com.
>
>
> --
> Problem reports: =A0 =A0 =A0 http://cygwin.com/problems.html
> FAQ: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http://cygwin.com/faq/
> Documentation: =A0 =A0 =A0 =A0 http://cygwin.com/docs.html
> Unsubscribe info: =A0 =A0 =A0http://cygwin.com/ml/#unsubscribe-simple
>
>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

