CONFIG: enable shared libraries when building clang

This commit is contained in:
mark
2016-07-27 17:02:28 +02:00
parent c20c2c2509
commit b36e02052b

View File

@ -4,7 +4,7 @@
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration | # \\ / O peration |
# \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation # \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
# \\/ M anipulation | # \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd.
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# License # License
# This file is part of OpenFOAM. # This file is part of OpenFOAM.
@ -90,7 +90,6 @@ USAGE
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# parse options # parse options
while [ "$#" -gt 0 ] while [ "$#" -gt 0 ]
do do
@ -150,6 +149,7 @@ else
--prefix=$LLVM_ARCH_PATH \ --prefix=$LLVM_ARCH_PATH \
--with-gcc-toolchain=$(which gcc | sed s%/bin/gcc%%) \ --with-gcc-toolchain=$(which gcc | sed s%/bin/gcc%%) \
--enable-optimized \ --enable-optimized \
--enable-shared \
&& make -j $WM_NCOMPPROCS \ && make -j $WM_NCOMPPROCS \
&& make install \ && make install \
&& echo "Built: $llvmPACKAGE" && echo "Built: $llvmPACKAGE"