SPOOLES MT routines
Ryan Schmidt
ryandesign at macports.org
Fri Aug 5 20:04:32 UTC 2022
On Aug 5, 2022, at 14:32, Mark Brethen wrote:
>
> pre-build {
> set cflags "${configure.cflags} [get_canonical_archflags cc]"
> set ldflags "${configure.ldflags} [get_canonical_archflags ld]"
>
> # workaround for Rank mismatch between actual argument
> set ver [regsub -all {[[:alpha:]]+} ${compilers.gcc_default} {}]
>
> if { ${ver} >= 10 } {
> set fflags "${configure.fflags} [get_canonical_archflags fc] -fallow-argument-mismatch"
> } else {
> set fflags "${configure.fflags} [get_canonical_archflags fc]"
> }
>
> set args "CFLAGS=${cflags} FFLAGS=${fflags} LDFLAGS=${ldflags}"
>
> build.args-append ${args}
>
> # Build serial spooles library
> ui_info "Building spooles"
> system -W ${workpath}/spooles.2.2 "${args} ${build.cmd} lib"
>
> # Extend library with multi-threading (MT) subroutines
> system -W ${workpath}/spooles.2.2/MT/src "${args} ${build.cmd} makeLib"
> }
>
>
> :info:build Building spooles
> :debug:build system -W /opt/local/var/macports/build/_Users_marbre_ports_cad_CalculiX-ccx/CalculiX-ccx/work/spooles.2.2: CFLAGS=-Os -arch x86_64 FFLAGS=-Os -m64 -fallow-argument-mismatch LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-rpath,/opt/local/lib/libgcc -arch x86_64 /usr/bin/make lib
> :info:build sh: -arch: command not found
>
> It worked when I patched the makefile with the flags, but these should probably be passed at build. What did I miss?
Quoting?
set args "CFLAGS=\"${cflags}\" FFLAGS=\"${fflags}\" LDFLAGS=\"${ldflags}\""
More information about the macports-dev
mailing list