freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Devel] -lm and ft2demos


From: Owen Taylor
Subject: [Devel] -lm and ft2demos
Date: Wed, 04 Aug 2004 16:28:47 -0400

When building ft2demos-2.1.9 I ran into the following error:

src/ftview.c:70: undefined reference to `pow'
/home/otaylor/cvs/rpms/freetype/freetype-2.1.9/ft2demos-2.1.9/obj/graph.a(gblender.o)(.text+0xe7):
 In function `gblender_set_gamma_table':
/home/otaylor/cvs/rpms/freetype/freetype-2.1.9/ft2demos-2.1.9/graph/gblender.c:35:
 undefined reference to `pow'

The following patch fixed for me:

--- ft2demos-2.1.9/graph/x11/rules.mk.mathlib   2004-08-04
16:11:22.534818408 -0400
+++ ft2demos-2.1.9/graph/x11/rules.mk   2004-08-04 16:11:35.317875088
-0400
@@ -70,7 +70,7 @@
   ifeq ($(PLATFORM),unix)
     GRAPH_LINK += $(X11_LIB:%=-R%)
   endif
-  GRAPH_LINK += $(X11_LIB:%=-L%) -lX11
+  GRAPH_LINK += $(X11_LIB:%=-L%) -lX11 -lm
  
   # Solaris needs a -lsocket in GRAPH_LINK.
   #

But I'm not entirely sure it is the right fix - it might be better to
modify the default value of GRAPH_LINK in ft2demos/Makefile to 
include $(MATH).

Regards,
                                                Owen

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]