patchGNU Autoconf Archive - Patches: patch #9788, ax_pthread.m4: when using -pthread...

 
 

patch #9788: ax_pthread.m4: when using -pthread and GCC, also add library.

Submitter:  None
Submitted:  Sat 06 Apr 2019 11:38:17 AM UTC
   
 
Priority:  5 - Normal Status:  None
Assigned to:  None Originator Email:  -email is unavailable-
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 19 Feb 2021 10:42:21 AM UTC, comment #2: 

I'm closing this ticket because it appears that the underlying issue has been fixed already.

Peter Simons <simons>
Group administrator
Wed 11 Mar 2020 04:19:27 PM UTC, comment #1: 

Seems to be fixed by 2fb904589643eb6ca6122f834891b58d1d51b347

Jens Rehsack <sno>
Sat 06 Apr 2019 11:38:17 AM UTC, original submission:  

GCC (and its specific language frontends) ignores the -pthread flag when using -nostdlib.

Since we cannot know what flags will be used later on, we should better add an existent library implementing the portable threads interface to PTHREAD_LIBS (if available).

Note that we do not actually check if the libraries contain any pthread symbols, the existence itself should be good enough. Otherwise, the checking code would have to be duplicated in multiple places, which doesn't make a lot of sense.

One popular (annoying) example of why this is necessary is libtool bug #13550, which means that libtool always links C++ code with -nostdlib.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by simons (Posted a comment)
  • -email is unavailable- added by sno (Posted a comment)
  • -email is unavailable- added by simons (Macro Author)
  • -email is unavailable- added by simons (Macro Author)
  • -email is unavailable- added by None (Submitted the item)
  •  

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-02-19 simons Open/ClosedOpen Closed
    2019-04-12 simons Carbon-Copy- Added steven g. johnson <stevenj@alum.mit.edu>
        Carbon-Copy- Added daniel richard g. <skunk@iskunk.org>
    2019-04-06 None Attached File- Added 0001-ax_pthread.m4-when-using-pthread-and-GCC-also-add-li.patch, #46730

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code