feat(cookbook): auxiliary dynamic linking functions
Depends on: redox!1526 (merged)
For the most part, the programs you want to dynamically compile, just prepend DYNAMIC_INIT
in the script for the package recipe. Depending on the package, this should suffice. However, sometimes you may need to regenerate sources and for that the autotools_recursive_regenerate
helper function will be in scope after DYNAMIC_INIT
. For other packages, more modification may be required.
Example
# <...snip...>
[build]
template = "custom"
script = """
+DYNAMIC_INIT
cookbook_configure
"""
# <...snip...>
[build]
template = "custom"
script = """
+DYNAMIC_INIT
+pushd $COOKBOOK_SOURCE
+autotools_recursive_regenerate
+popd # pushd $COOKBOOK_SOURCE
+
+cookbook_configure
"""
Signed-off-by: Anhad Singh andypython@protonmail.com