Skip to content
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

fotoxx: Update to 20.04 ; Fix musl build #18045

Merged
merged 2 commits into from Jan 17, 2020
Merged

fotoxx: Update to 20.04 ; Fix musl build #18045

merged 2 commits into from Jan 17, 2020

Conversation

ndowens
Copy link
Contributor

@ndowens ndowens commented Jan 5, 2020

No description provided.

@ndowens
Copy link
Contributor Author

ndowens commented Jan 6, 2020

@xtraeme Can you relook at this please :)

@pullmoll
Copy link
Member

pullmoll commented Jan 8, 2020

@ndowens If you change the Makefile to add to LIBS, i.e. LIBS += instead of LIBS = , you can then just set LIBS="-lexecinfo" in the template and avoid the EXECINFO variable which otherwise pollutes the environment.

@ndowens
Copy link
Contributor Author

ndowens commented Jan 8, 2020

@ndowens If you change the Makefile to add to LIBS, i.e. LIBS += instead of LIBS = , you can then just set LIBS="-lexecinfo" in the template and avoid the EXECINFO variable which otherwise pollutes the environment.

Will try that at some point today.
P.S. Seems a newer version is out, so will update to that as well.

@ndowens
Copy link
Contributor Author

ndowens commented Jan 8, 2020

Ok, I set LIBS = to LIBS += in Makefile and added LIBS="-lexecinfo" but that does not add -lexecinfo into LIBS in Makefile

Also tried doing make_build_args="LIBS=lexecinfo" and that caused way more link errors, as that overwrote the LIBS.

@pullmoll Ok the only other way I know to do this, is to add pkg-config file for libexecinfo(which might be beneficial later on for other pkgs)

@ndowens ndowens changed the title fotoxx: Update to 20.01 ; Fix musl build fotoxx: Update to 20.03 ; Fix musl build Jan 9, 2020
@pullmoll
Copy link
Member

Since adding the pkg-config file makes more sense, correcting my hint is redundant.
The problem was/is that common/build-style/gnu-makefile does not pass LIBS="$LIBS" in do_build(). It should probably do that for similar cases for when make_use_env is defined.

You could also have tried to set `make_build_args="LIBS=-lexecinfo`` in the template.

Adding the library like LDFLAGS="-lexecinfo" should also have worked while IMO this is not good style because LIBS is meant to be used for adding libraries, not LDFLAGS.

@ndowens
Copy link
Contributor Author

ndowens commented Jan 11, 2020 via email

@ndowens ndowens changed the title fotoxx: Update to 20.03 ; Fix musl build fotoxx: Update to 20.04 ; Fix musl build Jan 11, 2020
@pullmoll pullmoll merged commit 3143673 into void-linux:master Jan 17, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants