x11-libs/gtk-fortran: pass LDFLAGS

Closes: https://bugs.gentoo.org/820494

Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
This commit is contained in:
Sergey Torokhov
2021-10-29 22:09:39 +03:00
parent 0229c0e4fe
commit 0415d65fa2
3 changed files with 9 additions and 6 deletions

View File

@@ -39,9 +39,10 @@ pkg_setup() {
src_prepare() {
default
# Fix library installation path and disable 'sketcher' build
# Fix library installation path, disable 'sketcher' build, pass LDFLAGS
sed -i -e "s:CMAKE_INSTALL_LIBDIR lib:CMAKE_INSTALL_LIBDIR $(get_libdir):" \
-e "s: add_subdirectory(sketcher)::" CMakeLists.txt || die
-e "s: add_subdirectory(sketcher)::" \
-e 's:"-rdynamic":"-rdynamic '"${LDFLAGS}"'":' CMakeLists.txt || die
use !static-libs && eapply "${FILESDIR}/${P}_skip-static-build.patch"

View File

@@ -37,9 +37,10 @@ pkg_setup() {
src_prepare() {
default
# Fix library installation path and disable 'sketcher' build
# Fix library installation path, disable 'sketcher' build, pass LDFLAGS
sed -i -e "s:CMAKE_INSTALL_LIBDIR lib:CMAKE_INSTALL_LIBDIR $(get_libdir):" \
-e "s: add_subdirectory(sketcher)::" CMakeLists.txt || die
-e "s: add_subdirectory(sketcher)::" \
-e 's:"-rdynamic":"-rdynamic '"${LDFLAGS}"'":' CMakeLists.txt || die
cmake_src_prepare
}

View File

@@ -37,9 +37,10 @@ pkg_setup() {
src_prepare() {
default
# Fix library installation path and disable 'sketcher' build
# Fix library installation path, disable 'sketcher' build, pass LDFLAGS
sed -i -e "s:CMAKE_INSTALL_LIBDIR lib:CMAKE_INSTALL_LIBDIR $(get_libdir):" \
-e "s: add_subdirectory(sketcher)::" CMakeLists.txt || die
-e "s: add_subdirectory(sketcher)::" \
-e 's:"-rdynamic":"-rdynamic '"${LDFLAGS}"'":' CMakeLists.txt || die
cmake_src_prepare
}