[MacPorts] #50974: configure.compiler-append has no effect on the command line. No warnings generated.

MacPorts noreply at macports.org
Sat Mar 26 22:25:17 PDT 2016


#50974: configure.compiler-append has no effect on the command line.  No warnings
generated.
--------------------------------+--------------------------------
 Reporter:  fmw@…               |      Owner:  macports-tickets@…
     Type:  defect              |     Status:  new
 Priority:  Normal              |  Milestone:
Component:  base                |    Version:  2.3.4
 Keywords:  configure.compiler  |       Port:  ngspice
--------------------------------+--------------------------------
 When trying to install ngspice, -universal on 10.5.8, failure log
 suggested '-read_only_relocs suppress' was required.
 To test, I tried to add this on the command line.

 {{{
 % sudo port clean ngspice
 % sudo port install ngspice -universal configure.cflags-
 append='-read_only_relocs suppress'
 }}}

 This had no effect. Inspecting main.log, before and after this test showed
 no change to the line:-
 {{{
  CFLAGS='-Os -arch i386'
 }}}

 There was no warning message suggesting "configure.cflags-append" was not
 being recognised.[[BR]]
 The workaround was to NOT use -append but include the normal default flags
 (-Os) [except -arch i386, which gets added regardless], in a full
 replacement configure.cflags.

 {{{
 % sudo port clean ngspice
 % sudo port install ngspice -universal  configure.cflags='-Os
 -read_only_relocs  suppress'
 }}}

 The same behaviour occurs for configure.ldflags[[BR]]
 Perhaps this is related to defects like #41418

-- 
Ticket URL: <https://trac.macports.org/ticket/50974>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list