diff options
author | wiz <wiz@pkgsrc.org> | 2012-10-10 18:11:08 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2012-10-10 18:11:08 +0000 |
commit | 1fc7586a6799a659600dc84dbdcfc7876f41ee85 (patch) | |
tree | 2e792127403ab2b8d6c66014993e240aa13530eb /graphics | |
parent | 140ba5c0b69cc33abfda68af8bd195a5c1b4e525 (diff) | |
download | pkgsrc-1fc7586a6799a659600dc84dbdcfc7876f41ee85.tar.gz |
Add hack to work around gcc-4.5.4 bug on NetBSD/amd64.
Suggested by SAITOH Masanobu <msaitoh@execsw.org> in PR 47051.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/opencv/hacks.mk | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/graphics/opencv/hacks.mk b/graphics/opencv/hacks.mk new file mode 100644 index 00000000000..c03344425e0 --- /dev/null +++ b/graphics/opencv/hacks.mk @@ -0,0 +1,19 @@ +# $NetBSD: hacks.mk,v 1.1 2012/10/10 18:11:08 wiz Exp $ + +.if !defined(OPENCV_HACKS_MK) +OPENCV_HACKS_MK= defined + +.include "../../mk/bsd.fast.prefs.mk" +.include "../../mk/compiler.mk" + +# PR toolchain/47051: gcc-4.5.4 breaks opencv on amd64 +.if !empty(PKGSRC_COMPILER:Mgcc) && !empty(CC_VERSION:Mgcc-4.5.4*) && !empty(MACHINE_PLATFORM:M*-*-x86_64) +PKG_HACKS+= tree-pre +SUBST_CLASSES+= opt-hack +SUBST_STAGE.opt-hack= post-configure +SUBST_MESSAGE.opt-hack= Working around gcc-4.5.4 bug. +SUBST_FILES.opt-hack= ${WRKSRC}/modules/calib3d/CMakeFiles/opencv_calib3d.dir/build.make +SUBST_SED.opt-hack= -e '/stereosgbm.cpp.o/s/-o/-fno-tree-pre -o/' +.endif + +.endif # OPENCV_HACKS_MK |