[MacPorts] #61123: grepcidr: Not using the right compiler, -arch flags, has no universal variant
MacPorts
noreply at macports.org
Fri Sep 4 14:26:26 UTC 2020
#61123: grepcidr: Not using the right compiler, -arch flags, has no universal
variant
-------------------------+----------------------
Reporter: ryandesign | Owner: iEFdev
Type: defect | Status: reopened
Priority: Normal | Milestone:
Component: ports | Version: 2.6.3
Resolution: | Keywords:
Port: grepcidr |
-------------------------+----------------------
Comment (by iEFdev):
Replying to [comment:5 ryandesign]:
> but it is still not using MacPorts CFLAGS or LDFLAGS (including -arch
flags).
If I use:
{{{
#!tcl
makefile.override PREFIX CFLAGS LDFLAGS
pre-build {
reinplace "s|\$(CFLAGS)|\$(CFLAGS) \$(LDFLAGS)|"
${worksrcpath}/Makefile
}
}}}
I get this:
{{{
:info:build Executing: cd "… grepcidr-2.0" && /usr/local/bin/make -j5 -w
all PREFIX=/opt/local CFLAGS="-Os -arch x86_64" LDFLAGS="-L/opt/local/lib
-Wl,-headerpad_max_install_names -arch x86_64"
:debug:build system: cd "… grepcidr-2.0" && /usr/local/bin/make -j5 -w
all PREFIX=/opt/local CFLAGS="-Os -arch x86_64" LDFLAGS="-L/opt/local/lib
-Wl,-headerpad_max_install_names -arch x86_64"
:info:build make: Entering directory '… grepcidr-2.0'
:info:build /usr/bin/clang -Os -arch x86_64 -c -o grepcidr.o grepcidr.c
:info:build /usr/bin/clang -Os -arch x86_64 -L/opt/local/lib
-Wl,-headerpad_max_install_names -arch x86_64 grepcidr.o -o grepcidr
}}}
Is that ok?
--
Ticket URL: <https://trac.macports.org/ticket/61123#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list