On Sat, Oct 20, 2018 at 09:14:09PM +0100, Ken Moffat via blfs-dev wrote:
> First, my apologies for not noticing that the shared lib did not get
> reinstalled when I disabled the static lib.
>
> I think cmake has been a bad move from beginning to end, and even
> though most of the idiocies have by now been worked out, from time
> to time cases like this one emerge.
>
> But I've found the following at Arch ('openjpeg2_install.patch')
>
> diff -rupN openjpeg-2.3.0/src/lib/openjp2/CMakeLists.txt
> openjpeg-2.3.0-new/src/lib/openjp2/CMakeLists.txt
> --- openjpeg-2.3.0/src/lib/openjp2/CMakeLists.txt 2017-10-05
> 00:23:14.000000000 +0200
> +++ openjpeg-2.3.0-new/src/lib/openjp2/CMakeLists.txt 2017-12-25
> 13:53:07.000000000 +0100
> @@ -99,6 +99,7 @@ else()
> set(INSTALL_LIBS ${OPENJPEG_LIBRARY_NAME} openjp2_static)
> else()
> add_library(${OPENJPEG_LIBRARY_NAME} ${OPENJPEG_SRCS})
> + set(INSTALL_LIBS ${OPENJPEG_LIBRARY_NAME})
> endif()
> endif()
>
>
> Using that, and specifying -DBUILD_SHARED_LIBS=ON as well as
> the added -DBUILD_STATIC_LIBS=OFF it now installs the shared lib
> again.
>
> This looks like a place to add a sed "to ensure it installs the
> shared library when the static library is not built".
>
Well, adding a sed is beyond me : this addition is after the third
add_library line (WIN32, static AND shared, (else) shared). Plus
all the parentheses and dollars to be escaped - looks as if I manage
something, it will be a horribly long line.
Since the book is currently broken, I'm minded to just add the
patch.
ĸen
--
Is it about a bicycle ?
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page