[xiph-commits] r17383 - experimental/derf/theora-ptalarbvorm
giles at svn.xiph.org
giles at svn.xiph.org
Sat Sep 11 20:26:30 PDT 2010
Author: giles
Date: 2010-09-11 20:26:30 -0700 (Sat, 11 Sep 2010)
New Revision: 17383
Modified:
experimental/derf/theora-ptalarbvorm/SConstruct
Log:
Add explicit -lm to the other example files in the scons build.
Like png2theora.c, encoder_example.c and player_example.c call
rint() and so should be linked with libm. This is generally
redundant since they both link to vorbis, which also depends
on libm, but I find the explicit declaration more clear.
Modified: experimental/derf/theora-ptalarbvorm/SConstruct
===================================================================
--- experimental/derf/theora-ptalarbvorm/SConstruct 2010-09-12 03:17:22 UTC (rev 17382)
+++ experimental/derf/theora-ptalarbvorm/SConstruct 2010-09-12 03:26:30 UTC (rev 17383)
@@ -210,6 +210,7 @@
if have_vorbis:
encex = dump_video.Clone()
encex.ParseConfig('pkg-config --cflags --libs vorbisenc vorbis')
+ encex.Append(LIBS=['m'])
encex_Sources = Split("""
encoder_example.c
../lib/libtheoraenc.a
@@ -224,6 +225,7 @@
../lib/libtheoradec.a
""")
plyex.ParseConfig('sdl-config --cflags --libs')
+ plyex.Append(LIBS=['m'])
plyex.Program('examples/player_example', path('examples', plyex_Sources))
png2theora = env.Clone()
More information about the commits
mailing list