[Openmp-dev] Building a static LLVM OpenMP library?
John Leidel (jleidel) via Openmp-dev
openmp-dev at lists.llvm.org
Fri Jan 22 11:41:59 PST 2016
John, take this with a grain of salt (because I haven’t tried it). In each of the respective source directories, grep the “CMakeLists.txt” build script. Look for “add_library” and change the second argument from SHARED to STATIC.
Stand by and I’ll try this in our tree…..
John D. Leidel
On Jan 22, 2016, at 1:33 PM, John Mellor-Crummey via Openmp-dev <openmp-dev at lists.llvm.org> wrote:
> I’m not a cmake expert, but I didn’t see any support anywhere in the LLVM OpenMP directories for creating a static library to be used by statically-linked executables. I want this for use on Cray platforms, where statically-linked binaries are preferred.
>
> Are there cmake build options that can be used with the current build system to create a statically-linked library? If not, is there a cmake expert on this list willing to add such support so that static libraries are either created by default or can be added by setting a cmake variable?
> --
> John Mellor-Crummey Professor
> Dept of Computer Science Rice University
> email: johnmc at rice.edu phone: 713-348-5179
>
> _______________________________________________
> Openmp-dev mailing list
> Openmp-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev
More information about the Openmp-dev
mailing list