[Openmp-commits] [openmp] r259817 - Add LIBOMP_ENABLE_SHARED option for CMake

Ismail Donmez via Openmp-commits openmp-commits at lists.llvm.org
Fri Feb 5 00:04:37 PST 2016


Hi,

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
> Log:
> 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.

Thanks,
ismail


More information about the Openmp-commits mailing list