Build error when enable fips under cross compile
Description of problem:
When enable fips, the following build error happens:
./fipshmac > .libs/.gnutls.hmac-t && mv .libs/.gnutls.hmac-t .libs/.gnutls.hmac
libtool: link: (cd ".libs" && rm -f "libgnutlsxx.so.30" && ln -s "libgnutlsxx.so.30.0.0" "libgnutlsxx.so.30")
libtool: link: (cd ".libs" && rm -f "libgnutlsxx.so" && ln -s "libgnutlsxx.so.30.0.0" "libgnutlsxx.so")
/ubinux-dev/ubinux002/build-poky/tmp/work/core2-32-poky-linux/gnutls/3.7.5-r0/build/lib/.libs/lt-fipshmac: error while loading shared libraries: libgnutls.so.30: cannot open shared object file: No such file or directory
I think fipshmac command should not be executed on cross compile environment, and it should be executed on target, isn't it?
Version of gnutls used:
3.7.5
Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)
Isn't related to Distributor.
How reproducible:
In a cross compile environment. Steps to Reproduce:
- one
- two
- three
Actual results:
Expected results:
Edited by Daiki Ueno