Skip to content

Commit 6c74f4c

Browse files
authored
Special-case openbsd c++ libraries (#399)
* Special-case openbsd c++ libraries They may be typical for clang-based systems, but I'm not sure what that list is. Fix #398 Related to https://gitlab.haskell.org/ghc/ghc/-/issues/20870 * Use libc++ on FreeBSD instead of libstdc++ which no longer exists
1 parent c94b05c commit 6c74f4c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

text.cabal

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,12 @@ library
9595
extra-libraries: stdc++-6 gcc_s_seh-1
9696
else
9797
extra-libraries: stdc++-6 gcc_s_dw2-1
98+
elif os(darwin) || os(freebsd)
99+
extra-libraries: c++
100+
elif os(openbsd)
101+
extra-libraries: c++ c++abi
98102
else
99-
if os(darwin)
100-
extra-libraries: c++
101-
else
102-
extra-libraries: stdc++
103+
extra-libraries: stdc++
103104

104105
exposed-modules:
105106
Data.Text

0 commit comments

Comments
 (0)