aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2025-07-02 01:14:19 +0000
committerNIIBE Yutaka <[email protected]>2025-07-02 01:14:19 +0000
commitcac7168088147a4d308b5ae7482135bc00db9f69 (patch)
tree723818d92aaea04a1737136eeb532683f5c71f74
parentspawn: Define _GPGRT_NEED_AFLOCAL for OS without AF_LOCAL. (diff)
downloadlibgpg-error-cac7168088147a4d308b5ae7482135bc00db9f69.tar.gz
libgpg-error-cac7168088147a4d308b5ae7482135bc00db9f69.zip
gpgrt-config: It's gcc which supports -print-search-dirs option.
* src/gpgrt-config.in (determine_gpgrt_libdir): Default to gcc. -- This minor chang helps non-GNU system with vendor C compiler as cc. Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r--src/gpgrt-config.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpgrt-config.in b/src/gpgrt-config.in
index b5d0253..b4b2ca1 100644
--- a/src/gpgrt-config.in
+++ b/src/gpgrt-config.in
@@ -467,7 +467,7 @@ determine_gpgrt_libdir () {
# Debian style: /usr/lib/<multiarch-name>
# Fedora/openSUSE style: /usr/lib, /usr/lib32 or /usr/lib64
# It is assumed that CC is specified to the one of host on cross build.
- if libdir_candidates=$(${CC:-cc} -print-search-dirs | \
+ if libdir_candidates=$(${CC:-gcc} -print-search-dirs | \
sed -n -e "/^libraries/{s/libraries: =//;s/:/\\
/g;p;}"); then
# From the output of -print-search-dirs, select valid pkgconfig dirs.