Skip to content

add macports libcxx dependency on older macs for gdb #27203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion devel/gdb/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ depends_lib port:boehmgc \
port:zlib

# Older Apple clang versions segfault, c.f., https://trac.macports.org/ticket/56883
compiler.blacklist {clang < 601}
# recently GDB fails to build with the CLT for sierra
compiler.blacklist {clang < 1001}
compiler.thread_local_storage \
yes

Expand Down Expand Up @@ -86,6 +87,13 @@ pre-configure {

build.dir ${configure.dir}

#older macs require a new libcxx
if {${os.platform} eq "darwin" && ${os.major} < 17 && ${configure.cxx_stdlib} eq "libc++"} {
depends_lib-append port:macports-libcxx
configure.ldflags-append -L${prefix}/lib/libcxx
}


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