diff options
author | NIIBE Yutaka <[email protected]> | 2025-07-02 01:14:19 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2025-07-02 01:14:19 +0000 |
commit | cac7168088147a4d308b5ae7482135bc00db9f69 (patch) | |
tree | 723818d92aaea04a1737136eeb532683f5c71f74 | |
parent | spawn: Define _GPGRT_NEED_AFLOCAL for OS without AF_LOCAL. (diff) | |
download | libgpg-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.in | 2 |
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. |