Skip to content

Conversation

@wenxueliu
Copy link

In Ubuntu, there is static library of libpthread.a librt.a libc.a in /usr/lib/x86_64-linux-gnu/ default,
But in CentOS, there is not static library of libpthread.a librt.a libc.a default, you must specific it
with -L/usr/lib/x86_64-redhat-linux6E/lib64/ which contains the static library

In Ubuntu, there is static library of libpthread.a librt.a libc.a in /usr/lib/x86_64-linux-gnu/ default,
But in CentOS, there is not static library of libpthread.a librt.a libc.a default, you must specific it
with -L /usr/lib/x86_64-redhat-linux6E/lib64/ which contains the static library
@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@seranian
Copy link
Collaborator

Could you please agree to the CLA?

@tony2037
Copy link

tony2037 commented Jul 6, 2021

Maybe there can be a sort of configuration to determine LD_FLAGS.
If just remove static option regardless, does this work on other platforms?

@seuwins
Copy link

seuwins commented Nov 29, 2021

Maybe there can be a sort of configuration to determine LD_FLAGS. If just remove static option regardless, does this work on other platforms?

When i builded multichase on x86_64 with centos7.5 and aarch64 with centos8.0,both met the ld error message:
/bin/ld: cannot find -lrt
/bin/ld: cannot find -lm
/bin/ld: cannot find -lpthread
/bin/ld: cannot find -lc

It fixed after delete "-static" in “LDFLAGS=-g -O2 -static -pthread”.

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.

5 participants