Re: [ROOT] Re: relocation errors and invalid ELF error

From: Christian Holm Christensen (cholm@nbi.dk)
Date: Fri Oct 22 2004 - 17:57:26 MEST


Hi all, 


On Fri, 2004-10-22 at 15:25 +0200, Jiri Masik wrote:
> Hi Ricardo,
> 
> you should add fortran library -lg2c which is part of your compiler
> suite. 

Of course, using Autotools, all these will more or less be done
automatically for you.   Pick up my HIJING wrapper at 

	http://cern.ch/cholm/root/#thijing 

for an example of using ROOT, Fortran code, and Autotools.   

The essentials are to add the lines 


	AC_PROG_CXX
	AC_PROG_F77
	AC_F77_LIBRARY_LDFLAGS
	AM_PROG_LIBTOOL

to the configure.in script template, and in the Makefile.am makefile
template, remember to link to the variable @FLIBS@ or $(FLIBS)

	lib_LTLIBRARIES         = libHijing.la
	libHijing_la_LIBADD     = $(ROOTLIBS) -lEG @FLIBS@

Autotools itself figures out what linker to use, and what (extra)
runtime libraries are needed. 

Yours,

-- 
 ___  |  Christian Holm Christensen 
  |_| |  -------------------------------------------------------------
    | |  Address: Sankt Hansgade 23, 1. th.  Phone:  (+45) 35 35 96 91
     _|           DK-2200 Copenhagen N       Cell:   (+45) 24 61 85 91
    _|            Denmark                    Office: (+45) 353  25 404
 ____|   Email:   cholm@nbi.dk               Web:    www.nbi.dk/~cholm
 | |



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:10 MET