[MacPorts] #63232: gcc7 @7.5.0_2: ld: unknown option: -no_pie

MacPorts noreply at macports.org
Thu Jul 8 07:07:53 UTC 2021


#63232: gcc7 @7.5.0_2: ld: unknown option: -no_pie
---------------------+---------------------
  Reporter:  kencu   |      Owner:  (none)
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:
Resolution:          |   Keywords:  leopard
      Port:  gcc7    |
---------------------+---------------------

Comment (by kencu):

 It seems that passing {{{-Wl,-no_pie}}} to {{{/usr/bin/g++-4.2}}} results
 in the {{{ld: unknown option: -no_pie}}} error, but passing it to
 basically all the other compilers is tolerated and does not generate an
 error.

 Not sure why. Perhaps the flag is screened out of the linker invocation?

-- 
Ticket URL: <https://trac.macports.org/ticket/63232#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list