Skip to content

Commit

Permalink
add macports libcxx dependency on older macs for gdb
Browse files Browse the repository at this point in the history
this will ensure older systems are able to build and use the latest gdb
with minimal effort

hopefully other members on the macports squad will look into the macro
nusiance that otherwise impedes a clean compilation
  • Loading branch information
i3roly committed Dec 25, 2024
1 parent e530972 commit 4cf154f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions devel/gdb/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ pre-configure {

build.dir ${configure.dir}

#older macs require a new libcxx
if {${os.platform} eq "darwin" && ${os.major} < 15} {
configure.depends_lib-append port:macports-libcxx
configure.cxxflags-append -L/opt/local/lib/libcxx
}


post-destroot {
if {${os.platform} eq "darwin" && ${os.major} < 12} {
system "chgrp procmod ${destroot}${prefix}/bin/ggdb*"
Expand Down

0 comments on commit 4cf154f

Please sign in to comment.