Opened 12 years ago

Closed 12 years ago

#34672 closed defect (fixed)

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

Reported by: jerome.lelong@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: haspatch Cc: michaelld (Michael Dickens)
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 (2)

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

Download all attachments as: .zip

Change History (5)

Changed 12 years ago by jerome.lelong@…

Attachment: patch-configure_2.diff added

Remove -arch x86_64 flag

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: michaelld@… added
Port: fltk added; octave-devel removed
Summary: octave-devel @3.4.3 +fltk +gcc46 : linking failurefltk: fltk-config includes -arch flags

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

Changed 12 years ago by jerome.lelong@…

Attachment: Portfile added

Remove -arch flag form fltk-config

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Port: fltk-devel added
Status: newassigned
Summary: fltk: fltk-config includes -arch flagsfltk, 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 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

Committed in r93776.

Note: See TracTickets for help on using tickets.