From 4cf154f5bbc36b0fa283289210bd0e407e2f1c71 Mon Sep 17 00:00:00 2001 From: gagan sidhu Date: Wed, 25 Dec 2024 10:54:15 -0700 Subject: [PATCH] add macports libcxx dependency on older macs for gdb 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 --- devel/gdb/Portfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/devel/gdb/Portfile b/devel/gdb/Portfile index 4d052b23ce8e5..fe8a2f64773b5 100644 --- a/devel/gdb/Portfile +++ b/devel/gdb/Portfile @@ -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*"