Opened 5 years ago

Closed 5 years ago

#60428 closed defect (fixed)

cfm isn't using the right compiler or flags

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: WillEccles (Will Eccles)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: cfm

Description

cfm isn't UsingTheRightCompiler or -arch flags.

See for example this build log which shows

cc -O3 -std=c11 -Wall -W -pedantic -D_XOPEN_SOURCE=700 cfm.c -o cfm

Note the use of cc instead of the compiler MacPorts asked for; the absence of -arch flags; and the use of -O3 instead of the optimization flags MacPorts asked for.

The new makefile 1.0 portgroup may help you fix these issues easily. You may need to read the portgroup's source to determine how to use it.

Change History (3)

comment:1 Changed 5 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Cc: MarcusCalhoun-Lopez added

comment:2 Changed 5 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

There is a pull request that attempts to fix this issue.

comment:3 Changed 5 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: assignedclosed

In ade241f0bf5b910bc623d243ff5ee5c99fc45bdd/macports-ports (master):

cfm: respect MacPorts settings

My using the makefile PG, more MacPorts settings are respected.
Fixes #60428

Note: See TracTickets for help on using tickets.