← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-dev/yade/trunk] Rev 2920: - link to libgmpcxx explicitey if cgal in features. Solves runtime undefined symbol on natty.

 

------------------------------------------------------------
revno: 2920
committer: Bruno Chareyre <bruno.chareyre@xxxxxxxxxxx>
branch nick: trunk
timestamp: Sat 2011-09-10 16:21:25 +0200
message:
  - link to libgmpcxx explicitey if cgal in features. Solves runtime undefined symbol on natty.
modified:
  SConstruct


--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription
=== modified file 'SConstruct'
--- SConstruct	2011-08-24 10:13:47 +0000
+++ SConstruct	2011-09-10 14:21:25 +0000
@@ -371,6 +371,7 @@
 	if 'cgal' in env['features']:
 		ok=conf.CheckLibWithHeader('CGAL','CGAL/Exact_predicates_inexact_constructions_kernel.h','c++','CGAL::Exact_predicates_inexact_constructions_kernel::Point_3();')
 		env.Append(CXXFLAGS='-frounding-math') # required by cgal, otherwise we get assertion failure at startup
+		env.Append(LIBS=['gmpxx']) #need to be linked explicitely in ubuntu 11.04 (why not in 10.04?)
 		if not ok: featureNotOK('cgal')
 	env.Append(LIBS='yade-support')