[Rivet-svn] r3852 - in trunk: . bin

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Tue Jul 24 11:49:03 BST 2012


Author: buckley
Date: Tue Jul 24 11:49:02 2012
New Revision: 3852

Log:
Improving rivet-buildplugin to specify library search paths

Modified:
   trunk/ChangeLog
   trunk/bin/rivet-buildplugin.in

Modified: trunk/ChangeLog
==============================================================================
--- trunk/ChangeLog	Tue Jul 24 11:37:07 2012	(r3851)
+++ trunk/ChangeLog	Tue Jul 24 11:49:02 2012	(r3852)
@@ -1,6 +1,6 @@
 2012-07-24  Andy Buckley  <andy.buckley at cern.ch>
 
-	* Improvements/migrations to rivet-mkhtml and rivet-mkanalysis.
+	* Improvements/migrations to rivet-mkhtml, rivet-mkanalysis, and rivet-buildplugin.
 
 2012-07-12  Andy Buckley  <andy.buckley at cern.ch>
 

Modified: trunk/bin/rivet-buildplugin.in
==============================================================================
--- trunk/bin/rivet-buildplugin.in	Tue Jul 24 11:37:07 2012	(r3851)
+++ trunk/bin/rivet-buildplugin.in	Tue Jul 24 11:49:02 2012	(r3852)
@@ -72,6 +72,15 @@
 iboost="@BOOSTINCPATH@"
 test -n "$iboost" && mycppflags="$mycppflags -I${iboost}"
 
+## Get Rivet system linker flags (duplicating that in rivet-config.in)
+myldflags=""
+lrivet="@libdir@"
+test -n "$lrivet" && myldflags="$mycppflags -L${lrivet}"
+lhepmc="@HEPMCLIBPATH@"
+test -n "$lhepmc" && myldflags="$mycppflags -L${lhepmc}"
+lfastjet="@FASTJETLIBPATH@"
+test -n "$lfastjet" && myldflags="$mycppflags -L${lfastjet}"
+
 ## Link against ROOT if requested
 with_root=$(echo $* | egrep -- '--\<with-root\>')
 # echo $with_root
@@ -105,6 +114,6 @@
 fi
 
 ## Build
-cmd="$mycxx -o \"$libname\" $shared_flags $mycppflags $mycxxflags $sources_and_flags"
+cmd="$mycxx -o \"$libname\" $shared_flags $mycppflags $mycxxflags $myldflags $sources_and_flags"
 echo $cmd
 eval $cmd


More information about the Rivet-svn mailing list