tce-load -i compiletc cmake wget https://github.com/google/brotli/archive/v1.0.9/brotli-1.0.9.tar.gz cd brotli-1.0.9 sed -i 's@-R..libdir.@@' scripts/*.pc.in mkdir build cd build cmake -LAH -DCMAKE_C_FLAGS_RELEASE="-flto -march=i486 -mtune=i686 -Os -pipe -DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="-flto -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti -DNDEBUG" -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE=TRUE -DCMAKE_INSTALL_LIBDIR=lib ../ make [0m 24.177s] sudo make install --- CMakeLists.txt.orig +++ CMakeLists.txt @@ -183,7 +183,7 @@ endif() # Build the brotli executable add_executable(brotli ${BROTLI_CLI_C}) -target_link_libraries(brotli ${BROTLI_LIBRARIES_STATIC}) +target_link_libraries(brotli ${BROTLI_LIBRARIES}) # Installation if(NOT BROTLI_BUNDLED_MODE)