From d236c835f2bf33453e5025a826892d561f1d8f2a Mon Sep 17 00:00:00 2001 From: mattmcw Date: Fri, 17 Sep 2021 19:09:50 +0000 Subject: [PATCH 1/2] add cmd script to povray_gcc --- povray_gcc/cmd.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 povray_gcc/cmd.sh diff --git a/povray_gcc/cmd.sh b/povray_gcc/cmd.sh new file mode 100644 index 0000000..2be6a93 --- /dev/null +++ b/povray_gcc/cmd.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +cd povray + +sudo docker run \ + --cpus=2 \ + -v $PWD:/usr/src \ + povray_gcc \ + sh -c "${1}" From fdde412a08e3439702fcb734196da2ae5034bd68 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Fri, 17 Sep 2021 15:26:24 -0400 Subject: [PATCH 2/2] Use flags from https://hub.docker.com/r/jmaxwilson/povray/dockerfile with UINT hack --- povray_gcc/build.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/povray_gcc/build.sh b/povray_gcc/build.sh index 45232b4..f7d7ad4 100644 --- a/povray_gcc/build.sh +++ b/povray_gcc/build.sh @@ -3,10 +3,13 @@ EMAIL="hi@mmcwilliams.com" NAME="Matt McWilliams" #CPPFLAGS="-Wall -Wextra -Werror -I/usr/include/OpenEXR" -CPPFLAGS="-pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs -Wno-non-template-friend -s -O3 -ffast-math -march=native" +#CPPFLAGS="-pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs -Wno-non-template-friend -s -O3 -ffast-math -march=native" +CPPFLAGS="-include uint-hack.h -I/usr/include/OpenEXR" cd unix/ ./prebuild.sh cd ../ ./configure COMPILED_BY="$NAME <$EMAIL>" LDFLAGS="-Wl,-V" -make -j CPPFLAGS="${CPPFLAGS}" \ No newline at end of file +echo "typedef unsigned int uint;" > uint-hack.h +make -j CPPFLAGS="${CPPFLAGS}" +make install \ No newline at end of file