Forum: Cfengine Help Subject: Re: Instructions for building static cfengine 3 binaries on Linux? Author: JarleB Link to topic: https://cfengine.com/forum/read.php?3,17133,17584#msg-17584
This works on Linux. export LDFLAGS='--static' tar xvfz db-5.0.21.tar.gz && cd db-5.0.21/build_unix ../dist/configure --prefix=/opt/foo --enable-static --disable-shared make && make install cd ../.. tar xvfz pcre-8.02.tar.gz && cd pcre-8.02 ./configure --enable-static --disable-shared --prefix=/opt/foo --enable-unicode-properties make && make install cd .. tar xvfz openssl-1.0.0a.tar.gz && cd openssl-1.0.0a ./config --prefix=/opt/foo no-shared no-dso make && make install cd .. tar xvfz cfengine-3.0.5.tar.gz && cd cfengine-3.0.5 ./configure --prefix=/opt/cfengine --with-berkeleydb=/opt/foo --with-openssl=/opt/foo --with-pcre=/opt/foo --enable-static --disable-shared make && make install _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine