[xiph-commits] r17382 - experimental/derf/theora-ptalarbvorm

giles at svn.xiph.org giles at svn.xiph.org
Sat Sep 11 20:17:22 PDT 2010


Author: giles
Date: 2010-09-11 20:17:22 -0700 (Sat, 11 Sep 2010)
New Revision: 17382

Modified:
   experimental/derf/theora-ptalarbvorm/SConstruct
Log:
Link png2theora with -lm for rint() in the scons build.

This isn't required on x86_64, probably because gcc converts
it into an intrinsic, so this wasn't noticed until I tried
to build on 32 bit, where gcc 4.4.4 generated an explicit
call to lrint(). In any case, the manpage clearly indicates
linking with -lm, as in fact we do in the autotools build.


Modified: experimental/derf/theora-ptalarbvorm/SConstruct
===================================================================
--- experimental/derf/theora-ptalarbvorm/SConstruct	2010-09-12 02:40:51 UTC (rev 17381)
+++ experimental/derf/theora-ptalarbvorm/SConstruct	2010-09-12 03:17:22 UTC (rev 17382)
@@ -232,4 +232,6 @@
 	../lib/libtheoradec.a
 """)
 png2theora.ParseConfig('pkg-config --cflags --libs libpng')
+png2theora.Append(LIBS=['m'])
 png2theora.Program('examples/png2theora', path('examples', png2theora_Sources))
+



More information about the commits mailing list