terrible .pc files generated by icu... fixed in cvs

Dan Kegel dank at kegel.com
Fri Oct 4 20:53:26 CEST 2013

I just ran into a packaging problem with icu.  The .pc file for my
universal build of icu
contains the line

CFLAGS = -O3 -g  -arch i386 -arch x86_64 -isystem
/opt/oblong/deps/include -O2 -Wall -ansi -pedantic -Wshadow
-Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long

This seems wrong, since it prevents any non-universal app from using
the cflags returned by
pkg-config for icu.  (Not to mention the mysterious reference to
the options not at all related to how to use icu.)

I see some linux distros ignore the .pc files generated by icu itself,
and generate sensible ones; see e,g.

icu also comes with its own icu-config script, which suffers from the
same problem.

Happily, somebody else noticed this, and it was just now fixed:


More information about the pkg-config mailing list