summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* sci-libs/ta-lib: simplify for EAPI 8Sam James2022-05-131-5/+1
| | | | | | --disable-static is set by default with EAPI 8+ Signed-off-by: Sam James <sam@gentoo.org>
* sci-libs/ta-lib: Fix build with slibtoolorbea2022-05-131-0/+41
This fixes several issues with the build: * Renames configure.in to configure.ac as is standard. * Adds detection to configure.ac for libm to replaced the hardcoded instances of -lm. * Links internal dependencies with .la files rather than -l linker flags. The -l linker flags are for external dependencies exclusively and this can break with slibtool. * With slibtool there is a parellel make issue where gen_code binary is copied to ../../../bin before it is created and the Makefile.am needs to explicitly list gen_code as a prerequisite for the 'all-local' target. This probably happens because slibtool is significantly faster than GNU libtool. * Additionally slibtool will output the gen_code binary to the .libs directory while slibtool will do so in the Makefile directory. The command needs to be invoked with $(LIBTOOL) --mode=execute to correctly copy the binary and not the slibtool wrapper script for the binary. * Lastly there is a workaround for a slibtool bug where the cp(1) command is wrapped in a shell script. Invoking the command directly with --mode=execute will result in slibtool dropping the destination argument which obviously does not work. While this workaround is far from ideal, it will be portable for GNU libtool, slibtool now and slibtool when the bug is fixed. Bug: https://bugs.gentoo.org/790770 Upstream-PR: https://sourceforge.net/p/ta-lib/patches/6/ Signed-off-by: orbea <orbea@riseup.net> Closes: https://github.com/gentoo/gentoo/pull/25457 Signed-off-by: Sam James <sam@gentoo.org>