New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #34672 (closed defect: fixed)

Opened 13 months ago

Last modified 13 months ago

fltk, fltk-devel: fltk-config includes -arch flags

Reported by: jerome.lelong@… Owned by: ryandesign@…
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: haspatch Cc: michaelld@…
Port: fltk, fltk-devel

Description

Octave with variants fltk and gcc46 fails to link because the flag -arch x86_64 is not recognized by gcc46. This flag is added to LDFLAGS by fltk-config during the configure step. Replacing the patch patch-configure.diff by patch-configure_2.diff solves the issue and octave builds properly. However a better solution would be to prevent fltk-config from adding the -arch flag

Attachments

patch-configure_2.diff (1.2 KB) - added by jerome.lelong@… 13 months ago.
Remove -arch x86_64 flag
Portfile (2.4 KB) - added by jerome.lelong@… 13 months ago.
Remove -arch flag form fltk-config

Change History

Changed 13 months ago by jerome.lelong@…

Remove -arch x86_64 flag

comment:1 Changed 13 months ago by ryandesign@…

  • Cc michaelld@… added
  • Port changed from octave-devel to fltk
  • Summary changed from octave-devel @3.4.3 +fltk +gcc46 : linking failure to fltk: fltk-config includes -arch flags

Fix it in fltk, not octave. wiki:PortfileRecipes#archflags

Changed 13 months ago by jerome.lelong@…

Remove -arch flag form fltk-config

comment:2 Changed 13 months ago by ryandesign@…

  • Owner changed from macports-tickets@… to ryandesign@…
  • Status changed from new to assigned
  • Port changed from fltk to fltk, fltk-devel
  • Summary changed from fltk: fltk-config includes -arch flags to fltk, fltk-devel: fltk-config includes -arch flags

Thanks. In the future, it's easier to evaluate your changes if you supply a unified diff instead of an entire new portfile.

This new portfile you attached was for fltk-devel but the fltk port is also affected. I'll fix both.

comment:3 Changed 13 months ago by ryandesign@…

  • Status changed from assigned to closed
  • Resolution set to fixed

Committed in r93776.

Note: See TracTickets for help on using tickets.