https://github.com/Randrianasulu/CinelerraGG-slackbuild/blob/master/openCV4-static-gcc5_more-disable-3.diff

basically re-applied locally because opencv build eats a bit too much space...