1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-09 23:45:36 +00:00

Linux linking fix

This commit is contained in:
Antonin Portelli 2016-12-15 12:26:53 +00:00
parent cad158e42f
commit 596dd570c7
2 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@ nobase_libHadrons_a_HEADERS = \
ModuleFactory.hpp
HadronsXmlRun_SOURCES = HadronsXmlRun.cc
HadronsXmlRun_LDADD = -lGrid libHadrons.a
HadronsXmlRun_LDADD = libHadrons.a -lGrid
HadronsXmlSchedule_SOURCES = HadronsXmlSchedule.cc
HadronsXmlSchedule_LDADD = -lGrid libHadrons.a
HadronsXmlSchedule_LDADD = libHadrons.a -lGrid

View File

@ -24,11 +24,11 @@ for subdir in $dirs; do
echo "tests: ${TESTLIST} ${SUB}" > Make.inc
echo ${PREF}_PROGRAMS = ${TESTLIST} >> Make.inc
echo >> Make.inc
HADLINK=`[ $subdir = './hadrons' ] && echo '-lHadrons'`
HADLINK=`[ $subdir = './hadrons' ] && echo '-lHadrons '`
for f in $TESTS; do
BNAME=`basename $f .cc`
echo ${BNAME}_SOURCES=$f >> Make.inc
echo ${BNAME}_LDADD=-lGrid ${HADLINK} >> Make.inc
echo ${BNAME}_LDADD=${HADLINK}-lGrid >> Make.inc
echo >> Make.inc
done
if [ $subdir != '.' ]; then