Skip to content

Instantly share code, notes, and snippets.

@jvcleave
Created January 30, 2013 19:13
Show Gist options
  • Select an option

  • Save jvcleave/4675868 to your computer and use it in GitHub Desktop.

Select an option

Save jvcleave/4675868 to your computer and use it in GitHub Desktop.
cmake flags for compiling raspberrypi/userland with distcc
sed -i 's/if (DEFINED CMAKE_TOOLCHAIN_FILE)/if (NOT DEFINED CMAKE_TOOLCHAIN_FILE)/g' makefiles/cmake/arm-linux.cmake
mkdir build
cd build
cmake -D CMAKE_C_COMPILER=/usr/lib/distcc/gcc -D CMAKE_CXX_COMPILER=/usr/lib/distcc/g++ -DCMAKE_BUILD_TYPE=Release ..
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment