diff options
author | Violet Purcell <vimproved@inventati.org> | 2023-06-27 20:14:54 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-07-26 04:00:05 +0100 |
commit | 53868bd0433bed2dc3832b97090d5c9a1c671df6 (patch) | |
tree | 2e2d9747b25c71435efbc646b58be394f339d3bd /dev-libs/stfl/files | |
parent | media-gfx/hydrus: Drop 528 (diff) | |
download | gentoo-53868bd0433bed2dc3832b97090d5c9a1c671df6.tar.gz gentoo-53868bd0433bed2dc3832b97090d5c9a1c671df6.tar.bz2 gentoo-53868bd0433bed2dc3832b97090d5c9a1c671df6.zip |
dev-libs/stfl: Use correct flags from pkg-config for ncurses widechar
Closes: https://bugs.gentoo.org/895064
Signed-off-by: Violet Purcell <vimproved@inventati.org>
Closes: https://github.com/gentoo/gentoo/pull/31648
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/stfl/files')
-rw-r--r-- | dev-libs/stfl/files/stfl-0.24-ncurses-widechar.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/dev-libs/stfl/files/stfl-0.24-ncurses-widechar.patch b/dev-libs/stfl/files/stfl-0.24-ncurses-widechar.patch new file mode 100644 index 000000000000..c1690ce67fe4 --- /dev/null +++ b/dev-libs/stfl/files/stfl-0.24-ncurses-widechar.patch @@ -0,0 +1,26 @@ +ncurses widechar functions are only available if the correct macros are +defined. Use CFLAGS and LDFLAGS from pkgconfig to ensure that widechar +functions are available. + +From 9b71952bfb29e036b13c16d621febff76e84e3e4 Mon Sep 17 00:00:00 2001 +From: Violet Purcell <vimproved@inventati.org> +Date: Tue, 11 Jul 2023 15:45:05 -0400 +Subject: [PATCH] Use pkg-config for correct ncursesw CFLAGS and LDFLAGS + +--- a/Makefile ++++ b/Makefile +@@ -21,8 +21,9 @@ + include Makefile.cfg + + export CC = gcc -pthread +-export CFLAGS += -I. -Wall -Os -ggdb -D_GNU_SOURCE -fPIC +-export LDLIBS += -lncursesw ++export PKG_CONFIG ?= pkg-config ++export CFLAGS += -I. -Wall -Os -ggdb -D_GNU_SOURCE -fPIC $(shell ${PKG_CONFIG} --cflags ncursesw) ++export LDLIBS += $(shell ${PKG_CONFIG} --libs ncursesw) + + SONAME := libstfl.so.0 + VERSION := 0.24 +-- +2.41.0 + |