Fix compilation on 64-bit OpenIndiana (SunOS)

src/unix/mediactrl.cpp failed to compile due to a precision-losing cast
(from 'gpointer' {aka 'void*'} to 'window_id_type' {aka 'unsigned int'}).

Tell pkg-config to use 64-bit configs if building for 64-bit on SunOS.

PKG_CONFIG_PATH is set to /usr/lib/64/pkgconfig in that case.

Documented at:
https://docs.oracle.com/cd/E37838_01/html/E66175/gplhi.html

Closes #22143.
This commit is contained in:
Lauri Nurmi 2022-02-16 17:47:32 +02:00 committed by Vadim Zeitlin
parent cc54b767d3
commit 8b3e0acf75
2 changed files with 15 additions and 1 deletions

8
configure vendored
View file

@ -21166,8 +21166,14 @@ fi
;;
*-*-solaris2* )
if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
wx_cv_std_libpath="lib/64"
if test -n "$PKG_CONFIG_PATH"; then
PKG_CONFIG_PATH="/usr/$wx_cv_std_libpath/pkgconfig:$PKG_CONFIG_PATH"
else
PKG_CONFIG_PATH="/usr/$wx_cv_std_libpath/pkgconfig"
fi
export PKG_CONFIG_PATH
fi
;;