patchGNU Autoconf Archive - Patches: patch #7071, acx_pthread should use...

 
 

patch #7071: acx_pthread should use "-pthreads" on 10.6 OS X systems

Submitter:  None
Submitted:  Sat 23 Jan 2010 09:33:27 PM UTC
   
 
Priority:  5 - Normal Status:  Need Info
Assigned to:  simons Originator Email:  -email is unavailable-
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 15 Feb 2010 02:32:53 PM UTC, comment #2: 

Hi,

I have applied your patch in commit 49709f13babc78cf057a04726799de5ad5eb013a. Thank you very much for your efforts!

Take care,
Peter

Peter Simons <simons>
Group administrator
Sun 24 Jan 2010 04:55:21 PM UTC, comment #1: 

Hi Thomas,

thank you very much for your very detailed patch submission! I have put Steven, the original author of this macro, on Cc to give him a chance to comment on the issue.

Take care,
Peter

Peter Simons <simons>
Group administrator
Sat 23 Jan 2010 09:33:27 PM UTC, original submission:  

Hi everybody,

while compiling GNU Octave on my new Mac 10.6 system I found out that I need to definition "-D_REENTRANT", otherwise the compilation of some files fail. A good starting point for the discussion we had is here

  http://old.nabble.com/forum/ViewPost.jtp?post=27248324&framed=y

Searching the www also brought me to the option "-pthreads" which sets up linker flasg, too. A nice statement about it can be found here

  http://stackoverflow.com/questions/875789/gcc-do-i-need-dreentrant-with-pthreads

one says," You investigated properly and answered your own question. Use g++ -pthread, it is equivalent to g++ -pthread -D_REENTRANT. Using g++ -D_REENTRANT would be different, it may not set all the linker flags."

Finally, my suggestion to the GNU Octave project was the patch that I've attached to this ticket but I'm still unsure if this is the best solution.

Best regards

  Thomas

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #19540:  pthread.diff added by None (381B - application/octet-stream)

 

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 simons (author of ax_pthread)
  • -email is unavailable- added by None (Submitted the item)
  •  

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-02-15 simons Open/ClosedOpen Closed
    2010-01-24 simons StatusNone Need Info
        Assigned toNone simons
        Carbon-Copy- Added steven g. johnson <stevenj@alum.mit.edu>
    2010-01-23 None Attached File- Added pthread.diff, #19540

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code