Open mikhailnov opened 5 years ago
This would apparently break the build on other systems:
nine@sphinx:~> rpm -ql libtommath-devel
/usr/include/tommath.h
/usr/include/tommath_class.h
/usr/include/tommath_superclass.h
/usr/lib64/libtommath.so
Hm, you are right,INCPATH=%{_includedir}/tommath
is used in ROSA Linux (https://abf.io/perl6/libtommath/blob/rosa2016.1/libtommath.spec#lc-66).
I don't how how you handle switching between system and bundled libraries, for example, in Audacity, #include "header.h"
are in the code, but there is a file header.h
, to which the build system writes either #include <header.h>
to use the system library or #include "src/path/to/bundled/library/header.h"
to use the bundled library.
Also see my patch for libtommath:
I had to make it to build MoarVM with system libtommath in ROSA.
Can someone who knows how the MoarVM build system works internally have a look into this issue please?
I suspect the place to fiddle with is https://github.com/MoarVM/MoarVM/blob/master/Configure.pl#L260
Compared to other external libs, it's missing a call to setup_native_library()
...
I've submitted a PR that uses setup_native_library
as subjected by @cygx above, but unfortunately it looks like it won't fix the building issue as it appears ROSA doesn't bundle a .pc in its libtommath-devel package.
However, libtommath does now include a template .pc file in the source, so if ROSA begins including a customized version in their packages it should build without issue in the future.
ROSA's newest libtommath-devel package does have a .pc
file: https://abf.io/build_lists/2953316
Building with
--has-libtommath
failes. This patch fixes it:However, this patch will break building with bundled libtommath.