diff --git a/configure b/configure index 573deb138e..e3a87f8cca 100755 --- a/configure +++ b/configure @@ -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 ;; diff --git a/configure.in b/configure.in index befdb3b58d..9fed41a9ae 100644 --- a/configure.in +++ b/configure.in @@ -2212,8 +2212,16 @@ case "${host}" in *-*-solaris2* ) dnl use ../lib or ../lib/64 depending on the size of void* + dnl The pkg-config path should be adjusted for 64-bit. + dnl see https://docs.oracle.com/cd/E37838_01/html/E66175/gplhi.html 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 ;;