A
A
astrotrain2018-02-28 12:05:52
linux
astrotrain, 2018-02-28 12:05:52

How to get rid of binding to glibc?

I need to build a file that needs to work on different machines with different versions of glibc. How do I specify with CMAKE that I should statically link glibc? Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Dubrovin, 2018-02-28
@astrotrain

You can add -static to CMAKE_EXE_LINKER_FLAGS

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question