Re: --disable-builtin-freetype breaks compilation

From: Fons Rademakers <Fons.Rademakers_at_cern.ch>
Date: Thu, 14 Apr 2005 12:25:35 +0200


Hi Remi,

  this should be fixed now.

Cheers, Fons.

Remi Mommsen wrote:
> Hi,
>
> I tried to build root 4.03/04 on Mac OS X 10.3.8 using the new
> configuration option to disable the builtin freetype, i.e.
>
> configure macosx --disable-builtin-freetype
>
> The subsequent make fails with:
> make: *** No rule to make target `-lfreetype', needed by
> `graf/src/TLatex.o'. Stop.
>
> It turns out that in case that disable-builtin-freetype is active, this
> code in freetype/Module.mk is executed:
>
> FREETYPELIBF := $(shell freetype-config --libs)
> FREETYPEINC := $(shell freetype-config --cflags)
> FREETYPELIB := $(filter -l%,$(FREETYPELIBF))
> FREETYPELDFLAGS := $(filter-out -l%,$(FREETYPELIBF))
>
> thus FREETYPELIB is set to '-lfreetype'. So far so good, but in the
> following Module.mk the variable FREETYPELIB is also used for the
> dependency tracking, i.e. there are lines like:
>
> $(GRAFLIB): $(GRAFO) $(GRAFDO) $(FREETYPELIB) $(MAINLIBS)
> $(GRAFLIBDEP)
>
> graf/Module.mk
> x11ttf/Module.mk
> asimage/Module.mk
>
> This triggers the error above. I just removed the dependency on
> $(FREETYPELIB) from the three Module.mk files and the compile finished
> successfully.
>
> Cheers,
> Remi
>
> ---------------------------------------------------------------------
> Q: How many kinds of physicists are there?
> A: Three. Those who can count and those who can't.
>
> *********************************************************************
> Remigius K. Mommsen e-mail: mommsen_at_slac.stanford.edu
> University of California, Irvine URL: http://cern.ch/mommsen
> c/o SLAC voice: ++1 (650) 926-3595
> 2575 Sand Hill Road #35 fax: ++1 (650) 926-3882
> Menlo Park, CA 94025, US home: ++1 (650) 233-9041
> *********************************************************************

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers_at_cern.ch              Phone: +41 22 7679248
WWW:    http://www.rademakers.org/fons/      Fax:   +41 22 7679480
Received on Thu Apr 14 2005 - 12:25:41 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:06 MET