Update SConstruct to pass -lm when building with collect_metrics=1.
authorRalph Giles <giles@xiph.org>
Mon, 13 Dec 2010 18:38:40 +0000 (18:38 +0000)
committerRalph Giles <giles@xiph.org>
Mon, 13 Dec 2010 18:38:40 +0000 (18:38 +0000)
svn path=/trunk/theora/; revision=17753

SConstruct

index c381fd9..fdb5163 100644 (file)
@@ -51,6 +51,7 @@ if env['CC'] == 'gcc':
 collect_metrics = ARGUMENTS.get('collect_metrics', 0)
 if int(collect_metrics):
   env.Append(CPPDEFINES=['OC_COLLECT_METRICS'])
+  env.Append(LIBS=['m'])
 
 def CheckPKGConfig(context, version): 
   context.Message( 'Checking for pkg-config... ' )