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

acinclude.m4: check if -latomic is needed. #3083

Merged
merged 1 commit into from
May 7, 2018
Merged

Conversation

asafkahlon
Copy link
Contributor

On some cases, -latomic is needed for likning, and since the current
acinclude.m4 checks only compilation we can sometimes miss the need for -latomic
and the linking process will fail.
Therefore, the AC_CHECK_IFELSE was replaced with AC_LINK_IFELSE. If the first
try fails, we try to link again with -latomic and add LIBS="-latmoic" in case we
succeeded.

Signed-off-by: Asaf Kahlon [email protected]

On some cases, -latomic is needed for likning, and since the current
acinclude.m4 checks only compilation we can sometimes miss the need for -latomic
and the linking process will fail.
Therefore, the AC_CHECK_IFELSE was replaced with AC_LINK_IFELSE. If the first
try fails, we try to link again with -latomic and add LIBS="-latmoic" in case we
succeeded.

Signed-off-by: Asaf Kahlon <[email protected]>
@c-rack c-rack merged commit b9ba363 into zeromq:master May 7, 2018
woodsts pushed a commit to woodsts/buildroot that referenced this pull request May 8, 2018
Fixes:
http://autobuild.buildroot.net/results/b149aa2ee00e4d6a53c884cf99ecb2dd8af58b65/
http://autobuild.buildroot.net/results/e4b3616ac2695d3b6898185a70da6509b1faa2b8/

Patch the package to check if -latomic is needed to be added, depending on the
result of AC_LINK_IFELSE.

The patch was sent to upstream, see:
zeromq/libzmq#3083

Signed-off-by: Asaf Kahlon <[email protected]>
Signed-off-by: Thomas Petazzoni <[email protected]>
ananos pushed a commit to ananos/buildroot that referenced this pull request Jun 15, 2018
Fixes:
http://autobuild.buildroot.net/results/b149aa2ee00e4d6a53c884cf99ecb2dd8af58b65/
http://autobuild.buildroot.net/results/e4b3616ac2695d3b6898185a70da6509b1faa2b8/

Patch the package to check if -latomic is needed to be added, depending on the
result of AC_LINK_IFELSE.

The patch was sent to upstream, see:
zeromq/libzmq#3083

Signed-off-by: Asaf Kahlon <[email protected]>
Signed-off-by: Thomas Petazzoni <[email protected]>
@bluca
Copy link
Member

bluca commented Aug 31, 2019

@asafkahlon could you please send a new pull request or an email with a relicense statement? As explained in https://github.com/zeromq/libzmq/blob/master/.github/CONTRIBUTING.md and https://github.com/zeromq/libzmq/tree/master/RELICENSE we are trying to relicense libzmq under MPL-2. Thank you!

@bluca
Copy link
Member

bluca commented Feb 3, 2020

@asafkahlon another ping. Please consider helping us with the relicense. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants