mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-25 07:08:13 -07:00
lib name is depend on USE flag 'unicode', but for unknown reason, upstream remove XLIB in release 5.0.20240619 (always -lcdk instead of -lcdkw if unicode is enabled), which cause link failed if USE="unicode". Closes: https://bugs.gentoo.org/831226 Signed-off-by: Z. Liu <zhixu.liu@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/39795 Signed-off-by: Sam James <sam@gentoo.org>
29 lines
784 B
Diff
29 lines
784 B
Diff
https://bugs.gentoo.org/831226
|
|
|
|
lib name is depend on USE flag 'unicode', but for unknown reason,
|
|
upstream remove XLIB in release 5.0.20240619 (always -lcdk instead
|
|
of -lcdkw if unicode is enabled), which cause link failed if
|
|
USE="unicode".
|
|
|
|
diff --git a/cdk-config.in b/cdk-config.in
|
|
index 19b2972..aa0b2c8 100644
|
|
--- a/cdk-config.in
|
|
+++ b/cdk-config.in
|
|
@@ -41,6 +41,7 @@ same_prefix=yes
|
|
same_exec_prefix=yes
|
|
|
|
THIS="@PACKAGE@"
|
|
+XLIB="@LIB_ROOTNAME@"
|
|
|
|
[ $# = 0 ] && exec @SHELL@ "$0" --error
|
|
|
|
@@ -66,7 +67,7 @@ while [ $# -gt 0 ]; do
|
|
|
|
eval LDFLAGS='"@LDFLAGS@"'
|
|
eval LIBS='"@LIBS@"'
|
|
- LIBS="-l${THIS} $LIBS"
|
|
+ LIBS="-l${XLIB} $LIBS"
|
|
|
|
# If the directory given by --libdir is not in the LDFLAGS+LIBS set,
|
|
# prepend it to LDFLAGS to help link this application's library.
|