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

buildsys: fix static configuration and building #234

Closed
wants to merge 1 commit into from

Conversation

abrodkin
Copy link

In case of uClibc librt depends on libpthread.

In particular timer_create() function uses pthread_XXX().

That means in case of static builds it's required to link
not librt alone but together with libpthread.

That issues was spotted in Buldroot autobuilder failures:
http://autobuild.buildroot.net/results/759/75960db671807091fe9155aee9e46a6245e32590/
http://autobuild.buildroot.org/results/112/112e8b85783f5aaba42a937a6eb064317615a21b/

Signed-off-by: Alexey Brodkin abrodkin@synopsys.com

In case of uClibc librt depends on libpthread.

In particular timer_create() function uses pthread_XXX().

That means in case of static builds it's required to link
not librt alone but together with libpthread.

That issues was spotted in Buldroot autobuilder failures:
http://autobuild.buildroot.net/results/759/75960db671807091fe9155aee9e46a6245e32590/
http://autobuild.buildroot.org/results/112/112e8b85783f5aaba42a937a6eb064317615a21b/

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
@karelzak karelzak added the NOT-READY The patch is not ready yet. Need rework. label Jan 5, 2016
ladatrimasova pushed a commit to ladatrimasova/util-linux that referenced this pull request Jan 26, 2016
This pull request is a new version of pull request util-linux#234 by Alexey Brodkin.

In case of uClibc librt depends on libpthread. In particular
timer_create() function uses pthread_XXX(). That means in case of static
builds it's required to link not librt alone but together with libpthread. So
if checking timer_create function in librt fails, it is necessary to check if
timer_create function successfully links with "-lpthread".

That issues was spotted in Buldroot autobuilder failures:
http://autobuild.buildroot.net/results/759/75960db671807091fe9155aee9e46a6245e32590/
http://autobuild.buildroot.org/results/112/112e8b85783f5aaba42a937a6eb064317615a21b/

Signed-off-by: Lada Trimasova <ltrimas@synopsys.com>
@karelzak karelzak closed this Jan 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NOT-READY The patch is not ready yet. Need rework.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants