Skip to content

Commit

Permalink
tmate: fix build with gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed May 15, 2024
1 parent bb6334e commit cb73f18
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sysutils/tmate/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ long_description ${description}

patchfiles-append patch-configure.ac

# https://github.com/tmate-io/tmate/issues/302
if {[string match *gcc* ${configure.compiler}]} {
# cc1: error: unrecognized command line option "-Wno-null-pointer-arithmetic"
post-patch {
reinplace "s|-Wno-null-pointer-arithmetic||" ${worksrcpath}/Makefile.am
}
}

depends_build port:pkgconfig

depends_lib port:libevent \
Expand All @@ -27,3 +35,5 @@ depends_lib port:libevent \
port:libssh

use_autoreconf yes

compiler.c_standard 1999

0 comments on commit cb73f18

Please sign in to comment.