diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2023-04-03 10:34:45 +0200 |
---|---|---|
committer | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2023-04-03 10:34:45 +0200 |
commit | b0248580b68d970788bb43ac3ab8fe3e21ef71be (patch) | |
tree | 59bf6a74cf5374ee04c208c1dba76a6b3d4b54f8 /gcc/fold-const.cc | |
parent | 9fd6d83a4c90325e3c339ad9a4ffab0c4e5b12f3 (diff) | |
download | gcc-b0248580b68d970788bb43ac3ab8fe3e21ef71be.zip gcc-b0248580b68d970788bb43ac3ab8fe3e21ef71be.tar.gz gcc-b0248580b68d970788bb43ac3ab8fe3e21ef71be.tar.bz2 |
build: Check that -lzstd can be linked
Recent Solaris 11.4 SRUs bundle zstd, but only the 64-bit libraries (no
idea why). Because of this, in 32-bit builds cc1 etc. fail to link with
undefined references to various ZSTD_* functions from lto-compress.o.
This happens because currently only the presence of <zstd.h> is
necessary to enable zstd support in lto-compress.cc etc.
This patch checks for libzstd first and disables zstd support if
missing.
Tested on sparc-sun-solaris2.11 with the system installation of zstd
(64-bit only) and a locally-compiled one (specified with --with-zstd).
2023-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
gcc:
* configure.ac (ZSTD_LIB): Move before zstd.h check.
Unset gcc_cv_header_zstd_h without libzstd.
* configure: Regenerate.
Diffstat (limited to 'gcc/fold-const.cc')
0 files changed, 0 insertions, 0 deletions