On 2024-03-21 07:35, Jussi Korkala wrote: Hi,
> Is the compiler intentionally padded with crap like GCC? I do not know what you mean, so I made some guesses, and maybe below will help or not. ${MAKE_ENV} is populated with: CC="gcc13" CFLAGS="-O2 -pipe -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing " CPP="cpp13" CPPFLAGS="" LDFLAGS=" -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -L/usr/local/lib/gcc13 " LIBS="" CXX="g++13" CXXFLAGS="-O2 -pipe -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -Wl,-rpath=/usr/local/lib/gcc13 " Deeper into the build, where Ada's GRRBuild directs the compilation, ${PATH} contains: /usr/local/gnat12 And a number of other gnat12 prefixes. The compiler is eventually invoked: /usr/local/gnat12/bin/gcc -c -x ada [...] grep'ing ${build.log} for GCC returns 0. Thanks > Best regards, > Jussi Korkala > >> On 21. Mar 2024, at 1.25, Alastair Hogge <a...@riseup.net> wrote: >> >> Hello, >> >> Regarding the mentioned Port, and Problem Report[1], Matreshka currently >> installs shared libraries with the compiler version hard-coded in the >> filename, example: >> >> lib/matreshka/xml/libmatreshka-xml-12.2.so.20.0 >> >> The 12.2 in the above corresponds to the Free Software Foundation's Ada >> compiler, GNAT-12. Currently I am testing the following addition to the >> Makefile: >> >>> PLIST_SUB=GNAT_VERSION= ${_GNAT_VERSION} >>> [...] >>> _GNAT_VERSION= 12.3 >> >> And have made the required changes to the pkg-plist, that is, replacing >> all occurences of "12.2" with %%GNAT_VERSION%%, however, I am left >> wondering if there is another way to obtain the version of GCC used, >> instead of volunteers hard coding the version manually in the Makefile, >> every time the tool chain is updated... >> >> Summary: >> How can I get the version number of the tool chain used to compile a >> Port? >> >> 1: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277823 >> >> Thanks, >> Alastair >>