Skip to content

Commit e42bb16

Browse files
authored
lttoolbox: Test darwin-c-level
1 parent 563c29b commit e42bb16

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

textproc/lttoolbox/Portfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ patchfiles-append patch-ustring_h.diff
3838

3939
compiler.cxx_standard 2017
4040

41+
# MacOS <= 10.8.
42+
# https://github.com/macports/macports-ports/pull/30356#discussion_r2594470779
43+
if {${os.platform} eq "darwin" && ${os.major} == 10 && ${os.minor} < 9} {
44+
configure.cflags-append \
45+
-D__DARWIN_C_LEVEL=__DARWIN_C_FULL
46+
}
47+
4148
set python_version 313
4249

4350
depends_build-append path:bin/pkg-config:pkgconfig \

0 commit comments

Comments
 (0)