configure: Don't use pkg-config for xxhash
The pkg-config for xxhash points to the wrong directory. I reported https://bugzilla.redhat.com/show_bug.cgi?id=1858407 But xxhash is such a simple library that it is trivial to avoid pkg-config. Signed-off-by: Rafael Ávila de Espíndola <espindola@scylladb.com> Message-Id: <20200717204344.601729-1-espindola@scylladb.com>
This commit is contained in:
committed by
Nadav Har'El
parent
9d183aed2d
commit
bc20b71e6a
10
configure.py
10
configure.py
@@ -1344,14 +1344,8 @@ libs = ' '.join([maybe_static(args.staticyamlcpp, '-lyaml-cpp'), '-latomic', '-l
|
||||
# Must link with static version of libzstd, since
|
||||
# experimental APIs that we use are only present there.
|
||||
maybe_static(True, '-lzstd'),
|
||||
maybe_static(args.staticboost, '-lboost_date_time -lboost_regex -licuuc'), ])
|
||||
|
||||
pkgconfig_libs = [
|
||||
'libxxhash',
|
||||
]
|
||||
|
||||
args.user_cflags += ' ' + ' '.join([pkg_config(lib, '--cflags') for lib in pkgconfig_libs])
|
||||
libs += ' ' + ' '.join([pkg_config(lib, '--libs') for lib in pkgconfig_libs])
|
||||
maybe_static(args.staticboost, '-lboost_date_time -lboost_regex -licuuc'),
|
||||
'-lxxhash'])
|
||||
|
||||
if not args.staticboost:
|
||||
args.user_cflags += ' -DBOOST_TEST_DYN_LINK'
|
||||
|
||||
Reference in New Issue
Block a user