Ticket #34672 (closed defect: fixed)
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
Change History
Changed 13 months ago by jerome.lelong@…
- Attachment patch-configure_2.diff added
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.
Note: See
TracTickets for help on using
tickets.


Remove -arch x86_64 flag