Fix ncurses pkg-config generator script

It picks up the linker hardening flags and stuffs them into the
Libs section of the pkg-config file. Some packages, such as
procps-ng end up trying to apply them in a semi parsed form and
choke when trying to link against "noexecstack".

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
David Oberhollenzer 2020-03-13 20:14:38 +01:00
parent 4aab514712
commit 0fe431b970
2 changed files with 14 additions and 1 deletions

13
pkg/ncurses/0001.patch Normal file
View File

@ -0,0 +1,13 @@
diff --git a/misc/gen-pkgconfig.in b/misc/gen-pkgconfig.in
index 8f00b82..2849b4d 100644
--- a/misc/gen-pkgconfig.in
+++ b/misc/gen-pkgconfig.in
@@ -190,7 +190,7 @@ Description: $desc
Version: \${version}
${USEURL}URL: https://invisible-island.net/ncurses
Requires.private: $reqs
-Libs: $lib_flags $LIBS
+Libs: $LIBS
Libs.private: @LIBS@ $main_libs
Cflags: $CFLAGS
EOF

View File

@ -7,7 +7,7 @@ DEPENDS="toolchain toolchain"
SUBPKG="ncurses-dev ncurses++-dev ncurses"
prepare() {
return
apply_patches
}
build() {