Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix linking with internal libraries. (#339)
When building fflas-ffpack with slibtool it fails. ld: cannot find -lfflas ld: cannot find -lffpack This reveals several issues. * Internal libraries should never link with linker flags and should use the libtool archive (.la) files instead. * These should be added to LIBADD for libraries or LDADD for programs and never to LDFLAGS which is only for other linker flags. * The _DEPENDENCIES do not need to be set manually since the defaults will be correct if the LIBADD/LDADD variables are set correctly. * This issue is masked if fflas-ffpack is already installed where -lfflas and -lffpack are found installed on the system and not in the build directory. * There is overlinking of dependencies where the same dependencies are linked repeatedly. Making these changes allows both slibtool and GNU libtool to build correctly, the latter is far more permissive and silently hides this issue.
- Loading branch information