[Openmp-commits] [openmp] r259817 - Add LIBOMP_ENABLE_SHARED option for CMake
John Mellor-Crummey via Openmp-commits
openmp-commits at lists.llvm.org
Fri Feb 5 00:45:48 PST 2016
To date, libomp has only been dynamic. I wanted static libraries for some platforms, so I generalized the cmake handling to support either static or dynamic. If you want to generalize it to support both, that would be great.
John Mellor-Crummey Professor
Dept of Computer Science Rice University
email: johnmc at rice.edu phone: 713-348-5179
> On Feb 5, 2016, at 2:04 AM, Ismail Donmez via Openmp-commits <openmp-commits at lists.llvm.org> wrote:
> On Thu, Feb 4, 2016 at 9:29 PM, Jonathan Peyton via Openmp-commits
> <openmp-commits at lists.llvm.org> wrote:
>> Author: jlpeyton
>> Date: Thu Feb 4 13:29:35 2016
>> New Revision: 259817
>> URL: http://llvm.org/viewvc/llvm-project?rev=259817&view=rev
>> Add LIBOMP_ENABLE_SHARED option for CMake
>> When building executables for Cray supercomputers, statically-linked executables
>> are preferred. This patch makes it possible to build the OpenMP runtime as an
>> archive for building statically-linked executables. The patch adds the flag
>> LIBOMP_ENABLE_SHARED, which defaults to true. When true, a build of the OpenMP
>> runtime yields dynamic libraries. When false, a build of the OpenMP runtime
>> yields static libraries. There is no setting that allows both kinds of libraries
>> to be built.
> Just a feature request not a complaint but gcc ships both static and
> dynamic gomp libraries which are useful when you use -static and other
> times you want shared linking. It would be really nice if there was an
> option for both kind of libraries to be built.
> Openmp-commits mailing list
> Openmp-commits at lists.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Openmp-commits