mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Michael <msbroadf@gmail.com>
To: musl@lists.openwall.com
Subject: Re: Re: gthread_once
Date: Sun, 19 Oct 2014 11:08:24 +1100	[thread overview]
Message-ID: <CALdjXpAPcYnM66v70aS57o=CPTuDq_-sXXQqvxwwWJV=ubyn4g@mail.gmail.com> (raw)
In-Reply-To: <1413660336.5021.1036.camel@eris.loria.fr>


[-- Attachment #1.1: Type: text/plain, Size: 891 bytes --]

Thanks guys, i added my patch (attached) to musl-cross build system
(patches directory) and that fixed the problem.


On Sun, Oct 19, 2014 at 6:25 AM, Jens Gustedt <jens.gustedt@inria.fr> wrote:

> Am Samstag, den 18.10.2014, 15:02 -0400 schrieb Rich Felker:
> > Can't it be fixed just by changing gthr-posix.h not to use weak
> > references ever, and rebuilding gcc's target libs (or all of gcc)?
>
> Looking how this done for that gthread thing, __GXX_WEAK__ could be a
> good candidate to tweak. Hopefully this used consistently in other
> parts of the library.
>
> Jens
>
> --
> :: INRIA Nancy Grand Est ::: AlGorille ::: ICube/ICPS :::
> :: ::::::::::::::: office Strasbourg : +33 368854536   ::
> :: :::::::::::::::::::::: gsm France : +33 651400183   ::
> :: ::::::::::::::: gsm international : +49 15737185122 ::
> :: http://icube-icps.unistra.fr/index.php/Jens_Gustedt ::
>
>
>
>
>

[-- Attachment #1.2: Type: text/html, Size: 1436 bytes --]

[-- Attachment #2: gcc-4.8.3-gthread.diff --]
[-- Type: text/plain, Size: 473 bytes --]

--- a/libgcc/gthr.h	2014-10-19 09:38:42.878238566 +1100
+++ b/libgcc/gthr.h	2014-10-19 09:50:42.893740340 +1100
@@ -136,10 +136,8 @@
 /* The pe-coff weak support isn't fully compatible to ELF's weak.
    For static libraries it might would work, but as we need to deal
    with shared versions too, we disable it for mingw-targets.  */
-#ifdef __MINGW32__
 #undef GTHREAD_USE_WEAK
 #define GTHREAD_USE_WEAK 0
-#endif
 
 #ifndef GTHREAD_USE_WEAK
 #define GTHREAD_USE_WEAK 1

  reply	other threads:[~2014-10-19  0:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-18  2:16 gthread_once Michael
2014-10-18 10:18 ` gthread_once Szabolcs Nagy
2014-10-18 15:45   ` Rich Felker
2014-10-18 18:14     ` Szabolcs Nagy
2014-10-18 19:02       ` Rich Felker
2014-10-18 19:25         ` Jens Gustedt
2014-10-19  0:08           ` Michael [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-10-17 10:36 gthread_once Michael
2014-10-17 11:42 ` gthread_once Jens Gustedt
2014-10-17 12:10   ` Rich Felker

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='CALdjXpAPcYnM66v70aS57o=CPTuDq_-sXXQqvxwwWJV=ubyn4g@mail.gmail.com' \
    --to=msbroadf@gmail.com \
    --cc=musl@lists.openwall.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).