Opened 11 years ago

Closed 11 years ago

#40069 closed defect (fixed)

icu: icu-config includes -arch flags

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc:
Port: icu

Description

icu-config output contains -arch flags:

$ icu-config --cflags
-pipe -Os -arch x86_64 -O2 -std=c99 -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings   
$ icu-config --cxxflags
-pipe -Os -arch x86_64 -O2 -W -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long -std=c++11   
$ icu-config --ldflags
-arch x86_64  -lpthread -lm   -L/opt/local/lib -licui18n -licuuc -licudata  -lpthread -lm   

They must be removed; see PortfileRecipes#archflags

Change History (3)

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

Summary: icu-config includes -arch flagsicu: icu-config includes -arch flags

Same with the pkg-config files.

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

I've started working on this but in addition to -arch flags (which we can easily remove) the files contain other architecture-specific values, such as the size of a void pointer. I've opened an upstream issue to see if the developers of icu can help us by removing these differences from their files.

This matter was last considered in MacPorts in #23773 in which a very convoluted method was used to install the differing files with suffixes based on the arch.

comment:3 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

Removed -arch flags in r109411; I guess we can deal with the other issues later.

Note: See TracTickets for help on using tickets.