8000 Fix issue #123 · LumiGuide/haskell-opencv@2a42425 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2a42425

Browse files
committed
Fix issue #123
We were suffering from: https://ghc.haskell.org/trac/ghc/ticket/11829
1 parent 64585b5 commit 2a42425

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

opencv-extra/opencv-extra.cabal

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,15 @@ library
6363
xfeatures/surf.hpp
6464
ximgproc-namespace.hpp
6565

66-
cxx-options: -std=c++11
67-
extra-libraries: stdc++
66+
cxx-options: -std=c++11
67+
68+
if os(darwin)
69+
extra-libraries: c++
70+
-- See: https://ghc.haskell.org/trac/ghc/ticket/11829
71+
ld-options: -Wl,-keep_dwarf_unwind
72+
else
73+
extra-libraries: stdc++
74+
ghc-options: -lstdc++
6875

6976
ghc-options: -Wall -fwarn-incomplete-patterns -funbox-strict-fields
7077

opencv/opencv.cabal

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,15 @@ library
6868
termcriteria.hpp
6969
video_motion_analysis.hpp
7070

71-
cxx-options: -std=c++11
72-
extra-libraries: stdc++
73-
ghc-options: -lstdc++
71+
cxx-options: -std=c++11
72+
73+
if os(darwin)
74+
extra-libraries: c++
75+
-- See: https://ghc.haskell.org/trac/ghc/ticket/11829
76+
ld-options: -Wl,-keep_dwarf_unwind
77+
else
78+
extra-libraries: stdc++
79+
ghc-options: -lstdc++
7480

7581
ghc-options: -Wall -fwarn-incomplete-patterns -funbox-strict-fields
7682

0 commit comments

Comments
 (0)
0