[MacPorts] #69067: libgcc* ports apparently do not need +stdlib_flag variants, it does nothing

MacPorts noreply at macports.org
Sun Jan 7 14:56:55 UTC 2024


#69067: libgcc* ports apparently do not need +stdlib_flag variants, it does nothing
-----------------------------------------------------+--------------------
  Reporter:  barracuda156                            |      Owner:  (none)
      Type:  defect                                  |     Status:  new
  Priority:  Normal                                  |  Milestone:
 Component:  ports                                   |    Version:  2.8.1
Resolution:                                          |   Keywords:
      Port:  libgcc10, libgcc11, libgcc12, libgcc13  |
-----------------------------------------------------+--------------------

Comment (by cjones051073):

 I do not see what the problem is here.

 1. The if statement is correct. The configure option needs to be applied
 to both the main gccX port but also the libgccX sub-port, and the current
 check does this.

 2. I do not understand what you mean by the above doing nothing ? The
 variant correctly ensures the -with-gxx-libcxx-include-dir option is
 applied. e.g. from `sudo port -d configure gcc13`

 {{{
 DEBUG: system:  cd
 "/opt/local/var/macports/build/_Users_chris_Projects_MacPorts_ports_lang_gcc13/gcc13/work/build"
 &&
 /opt/local/var/macports/build/_Users_chris_Projects_MacPorts_ports_lang_gcc13/gcc13/work/gcc-13.2.0/configure
 --prefix=/opt/local --build=arm64-apple-darwin23 --enable-
 languages=c,c++,objc,obj-c++,lto,fortran,jit --libdir=/opt/local/lib/gcc13
 --includedir=/opt/local/include/gcc13 --infodir=/opt/local/share/info
 --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-13
 --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-
 suffix=-mp-13 --with-gxx-include-dir=/opt/local/include/gcc13/c++/ --with-
 gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-
 isl=/opt/local --with-zstd=/opt/local --enable-checking=release --disable-
 multilib --enable-lto --enable-libstdcxx-time --with-build-config
 =bootstrap-debug --with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld-
 classic --with-ar=/opt/local/bin/ar --with-
 bugurl=https://trac.macports.org/newticket --enable-host-shared --with-
 darwin-extra-rpath=/opt/local/lib/libgcc --with-libiconv-prefix=/opt/local
 --disable-tls --with-gxx-libcxx-include-
 dir="/opt/local/libexec/gcc13/libc++/include/c++/v1" --with-
 pkgversion="MacPorts gcc13 13.2.0_4+stdlib_flag" --with-
 sysroot="/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk"
 }}}

 So, in short, I don't see anything wrong here.

-- 
Ticket URL: <https://trac.macports.org/ticket/69067#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list