cannot build dssim on ubuntu with clang
clang version 9.0.1-12 failed with following error:
FAILED: subprojects/dssim/libdssim-lib.so.1.1
clang-9 -o subprojects/dssim/libdssim-lib.so.1.1 'subprojects/dssim/23b528e@@dssim-lib@sha/src_dssim.c.o' -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,libdssim-lib.so.1 -lm -lz -Wl,--end-group
/usr/bin/ld: subprojects/dssim/23b528e@@dssim-lib@sha/src_dssim.c.o: in function `set_gamma':
gst-build/subprojects/dssim/src/dssim.c:177: undefined reference to `__pow_finite'
/usr/bin/ld:gst-build/subprojects/dssim/src/dssim.c:183: undefined reference to `__pow_finite'
/usr/bin/ld: gst-build/subprojects/dssim/src/dssim.c:183: undefined reference to `__pow_finite'
but it is there:
readelf -Ws /lib/x86_64-linux-gnu/libm.so.6| grep pow_finite
626: 000000000002ed90 65 IFUNC GLOBAL DEFAULT 17 __pow_finite@GLIBC_2.15