Merge pull request #12 from chris-cartwright/master

Set C99 for Raspbian jessie
This commit is contained in:
Limor "Ladyada" Fried 2018-04-18 23:51:31 -04:00 committed by GitHub
commit 01b99baa0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -311,6 +311,7 @@ function install_fbcp() {
mkdir build mkdir build
cd build cd build
echo "Building rpi-fbcp..." echo "Building rpi-fbcp..."
echo -e "\nset (CMAKE_C_FLAGS \"-std=gnu99 ${CMAKE_C_FLAGS}\")" >> ../CMakeLists.txt
cmake .. 1> /dev/null || { warning "Failed to cmake fbcp!" && exit 1; } cmake .. 1> /dev/null || { warning "Failed to cmake fbcp!" && exit 1; }
make 1> /dev/null || { warning "Failed to make fbcp!" && exit 1; } make 1> /dev/null || { warning "Failed to make fbcp!" && exit 1; }
echo "Installing rpi-fbcp..." echo "Installing rpi-fbcp..."