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
$(THREADSCFLAGS)
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
$(THREADSCFLAGS), and all
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.
http://patches.openembedded.org/patch/39569/
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:
http://bugs.icu-project.org/trac/ticket/10308
More information about the pkg-config
mailing list