Opened 3 years ago
Closed 3 years ago
#64201 closed defect (fixed)
catgirl is not using the right compiler or flags
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | ryanakca (Ryan Kavanagh) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.1 |
Keywords: | Cc: | june@… | |
Port: | catgirl |
Description
---> Configuring catgirl DEBUG: Preferred compilers: macports-clang-9.0 macports-clang-8.0 macports-clang-7.0 macports-clang-6.0 macports-clang-5.0 macports-clang-11 macports-clang-10 macports-clang-3.7 macports-clang-3.4 DEBUG: Using compiler 'MacPorts Clang 9.0' DEBUG: Executing org.macports.configure (catgirl) DEBUG: Environment: CC='/opt/local/bin/clang-mp-9.0'
CFLAGS='-pipe -Os -arch i386' CPATH='/opt/local/include' CPPFLAGS='-I/opt/local/include' CXX='/opt/local/bin/clang++-mp-9.0' CXXFLAGS='-pipe -Os -stdlib=libc++ -arch i386'
LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -arch i386'
---> Building catgirl
cc -std=c11 -Wall -Wextra -Wpedantic -Wno-gnu-case-range -Wno-gnu-conditional-omitted-operand -D__STDC_WANT_LIB_EXT1__=1 -D'explicit_bzero(b,l)=memset_s((b),(l),0,(l))' -D_DARWIN_C_SOURCE -D'OPENSSL_BIN="/opt/local/libexec/openssl3/bin/openssl"' -c -o buffer.o buffer.c
Note how the build is occuring with cc
instead of /opt/local/bin/clang-mp-9.0
as requested.
Note how the build is occuring without the requested -pipe -Os -arch i386
flags.
Change History (2)
comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 3 years ago by Ryan Kavanagh <rak@…>
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
June replied by email:
The answer is that it is expected that the project's configuration program will capture that information and use the captured information during the build. That's how autotools, cmake, most other build systems work. If catgirl's build system will not be fixed to work this way, then the environment variables can be set by the portfile manually in the build phase, or the makefile-1.0 portgroup can be employed to assist in that task.