Fix the build
authorMatthias Clasen <mclasen@redhat.com>
Tue, 23 Aug 2011 12:36:09 +0000 (08:36 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 23 Aug 2011 12:36:09 +0000 (08:36 -0400)
With gcc 4.6.1, I get a build error in pango/ because the C++
parts in harfbuzz have not been compiles with -lPIC. Not sure
if this change is 100% correct, but it makes things build
successfully.

pango/opentype/Makefile.am

index 23bb55b..32330fb 100644 (file)
@@ -45,6 +45,7 @@ HBHEADERS = \
 
 libharfbuzz_la_SOURCES = $(HBSOURCES) $(HBHEADERS)
 libharfbuzz_la_CPPFLAGS = -DHAVE_GLIB $(GLIB_CFLAGS)
+libharfbuzz_la_CXXFLAGS = -fPIC
 libharfbuzz_la_LIBADD = $(GLIB_LIBS)
 
 noinst_PROGRAMS = main