-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shared.ldflags broken when building with helper-library #64
Comments
sidenote: i also noticed that the Linux: pd-lib-builder/Makefile.pdlibbuilder Line 496 in 3eb4832
Darwin: pd-lib-builder/Makefile.pdlibbuilder Lines 518 to 520 in 3eb4832
|
This was a useful reminder that it a successful build and load doesn't tell everything. Commit e6cff66 is meant to solve this issue. The inconsistency between immediate and deferred expansion in Linux vs Darwin might have been accidental but I tend to use simply expanded variables whenever possible. |
thanks for the quick fix. ad inconsistencies: it seems that on Windows, the ad reminder: probably the test-builds should be run with |
For Windows |
Or alternatively there could be a special target like |
for the linker it's i'm not entirely sure whether we should enable those flags unconditionally though. i also wonder, what would be the most scalable way to apply this to all test-projects. probably something like: tests/single/Makefile:
tests/Makefile.pdlibbuilder:
|
Admittedly that is a clever trick. The "Fakefile.pdlibbuilder" confused me therefore I tried to figure out different ways to get the same result. When those extra flags are defined for target The most flexible approach is probably to put all test project boilerplate into tests/single/Makefile:
tests/Makefile.test:
|
well, i deliberately re-used but more importantly: i kind of dislike the generic formulation of the buildcheck/installcheck targets, as this makes for tautological tests: i'm pretty sure that |
Agreed, the tests projects should be transparent as examples and therefore they should include Makefile.pdlibbuilder. In the meantime I'm thinking that the best place for the About tautological tests: clear, so we don't need a boilerplate file (so far). |
now that we have a simple test-suite it starts to catch errors :-)
using the
shared.ldflags
variable fails to expand theshared.lib
variable.Building the
tests/multishared/
project I get:note the lines:
my compiler (gcc-9.2.1) is quite forgiving, so the test actually succeeds.
however, on other systems (notably an android test-build), the
-Wl,-soname,
flag (without an actual SONAME) raises an error (that's how i discovered it).Running
git bisect
I see that this was introduced with a6975e9 (reordering makefile sections)The text was updated successfully, but these errors were encountered: