bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] OpenMP flags are disregarded by libtool in library link mode


From: Rhys Ulerich
Subject: [PATCH] OpenMP flags are disregarded by libtool in library link mode
Date: Mon, 14 Mar 2011 09:54:09 -0500

'Morning,

Included is a patch to fix an issue where OpenMP flags are discarded by libtool.

This has popped up a couple of times.  For example,
   https://bugzilla.redhat.com/show_bug.cgi?id=679491
   http://lists.gnu.org/archive/html/bug-libtool/2010-12/msg00009.html
   http://lists.gnu.org/archive/html/bug-libtool/2011-03/msg00015.html

Following that last link, my understanding is that OpenMP flags like
-fopenmp need to be preserved like a pthread flag is.  Also following
that last link, the patch works by appending OpenMP flags to the list
of pthreads flags appearing twice within ltmain.m4sh.  The OpenMP flag
list was lifted from FFTW's AX_OPENMP macro.

I wasn't sure of the exact ChangeLog content necessary per
http://www.gnu.org/software/libtool/contribute.html.  The commit
message is suitable for insertion into the ChangeLog, I think.

- Rhys

Attachment: 0001-Preserve-OpenMP-flags-in-library-link-mode.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]