Build statically linked binary #1333
-
If I build the binaries using "cmake .; make" as per the build instructions, the resulting binaries fail to run unless I set LD_LIBRARY_PATH to "/usr/lib64/mysql" AND I have the libmysqlclient.so.20 library in it. However, the delivered binaries don't require the LD_LIBRARY_PATH setting, and are mach larger (10MB vs 256K). How can I build the binaries like the delivered ones so they don't need LD_LIBRARY_PATH set? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
In this file: https://github.com/mydumper/mydumper/blob/master/.circleci/config.yml you will find the CMAKED option like this:
with the static library. Depending of the OS and version you will find it on different locations. |
Beta Was this translation helpful? Give feedback.
did you
rm CMakeCache.txt
before cmake?