Skip to content

Commit

Permalink
kcat: fix build on older OS
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Jun 16, 2024
1 parent bfae987 commit e967573
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion net/kcat/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ PortGroup github 1.0

github.setup edenhill kcat 1.7.1
categories net
platforms darwin
license BSD
maintainers {gmail.com:alexey.trenikhin+macports @alexeyt820} \
openmaintainer
Expand All @@ -20,3 +19,14 @@ configure.args --enable-json

depends_lib port:yajl \
port:librdkafka

# configure fails with gcc-4.2
compiler.blacklist-append \
*gcc-4.*

# https://github.com/edenhill/kcat/issues/448
if {[string match *gcc* ${configure.compiler}] \
&& ${configure.build_arch} in [list arm i386 ppc]} {
configure.ldflags-append \
-latomic
}

0 comments on commit e967573

Please sign in to comment.