From 00df9e8ac7d2393e66553bcd99e68d954a771d48 Mon Sep 17 00:00:00 2001 From: Christopher Nielsen Date: Tue, 9 Nov 2021 12:20:04 -0500 Subject: [PATCH] pg legacysupport-1.1: fix support for macports-libcxx - Add missing compilation flag '-nostdinc++' - Fix header search path; missing '/v1' suffix See: https://trac.macports.org/ticket/63869 --- _resources/port1.0/group/legacysupport-1.1.tcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_resources/port1.0/group/legacysupport-1.1.tcl b/_resources/port1.0/group/legacysupport-1.1.tcl index a47dc1ed122ff..5198f1dd98864 100644 --- a/_resources/port1.0/group/legacysupport-1.1.tcl +++ b/_resources/port1.0/group/legacysupport-1.1.tcl @@ -177,9 +177,9 @@ proc legacysupport::add_legacysupport {} { # Flags for using MP libcxx if { [option legacysupport.use_mp_libcxx] } { legacysupport::add_once depends_lib append port:macports-libcxx - append ls_cache_incpath " ${prefix}/include/libcxx" + append ls_cache_incpath " ${prefix}/include/libcxx/v1" append ls_cache_ldflags " -L${prefix}/lib/libcxx" - append ls_cache_cppflags " -isystem${prefix}/include/libcxx" + append ls_cache_cppflags " -nostdinc++ -isystem${prefix}/include/libcxx/v1" } ui_debug "legacysupport: ldflags ${ls_cache_ldflags}"