Skip to content

Commit

Permalink
pg legacysupport-1.1: fix support for macports-libcxx
Browse files Browse the repository at this point in the history
- Add missing compilation flag '-nostdinc++'
- Fix header search path; missing '/v1' suffix
See: https://trac.macports.org/ticket/63869
  • Loading branch information
mascguy committed Nov 9, 2021
1 parent 81b46e2 commit 00df9e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _resources/port1.0/group/legacysupport-1.1.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 00df9e8

Please sign in to comment.