Subject: | freebsd 19: tidy vs. tidy5 |
Build fails on freebsd 13 (with installed tidy-html5 system package):
...
$ make
"/usr/perl5.28.0p/bin/perl5.28.0" -MExtUtils::Command::MM -e 'cp_nonempty' -- T5.bs blib/arch/auto/HTML/T5/T5.bs 644
rm -f blib/arch/auto/HTML/T5/T5.so
LD_RUN_PATH="/usr/local/lib" cc -L/usr/local/lib -shared -L/usr/local/lib -fstack-protector-strong T5.o -o blib/arch/auto/HTML/T5/T5.so -L/usr/local/lib -ltidy
ld: error: unable to find library -ltidy
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1
...
Linking should not be againt tidy, but tidy5. The following works:
LD_RUN_PATH="/usr/local/lib" cc -L/usr/local/lib -shared -L/usr/local/lib -fstack-protector-strong T5.o -o blib/arch/auto/HTML/T5/T5.so -L/usr/local/lib -ltidy5
And a subsequent "make test" is successful then.
Interestingly the Makefile.PL knows about the library being called tidy5 on freebsd systems, but somehow this information is not used...