Commit 6fabfcb7 authored by Adam Mercer's avatar Adam Mercer Committed by Bernd Machenschalk
Browse files

fix boinc linking

ensure BOINC_CFLAGS and BOINC_LIBS are correctly set
Original: 849e736e1258956acc52129ff9364a6f41ee8fcb
parent 763bf4cb
......@@ -324,8 +324,11 @@ if test "${boinc}" = "true" ; then
# do compilation checks with c++
AC_LANG_PUSH([C++])
CPPFLAGS="$CPPFLAGS -I$BOINC_PREFIX/include"
LDFLAGS="$LDFLAGS -L$BOINC_PREFIX/lib"
# set boinc flags
BOINC_CFLAGS="-I$BOINC_PREFIX/include"
BOINC_LIBS="-L$BOINC_PREFIX/lib -lboinc -lboinc_api"
CPPFLAGS="$CPPFLAGS $BOINC_CFLAGS"
LIBS="$LIBS $BOINC_LIBS"
# check for boinc libraries
AC_CHECK_LIB([boinc],[boinc_fopen],[true],[boinc=false])
......@@ -348,6 +351,8 @@ if test "${fftw3}" = "true"; then
fi
if test "${boinc}" = "true"; then
AC_DEFINE([LAL_BOINC_ENABLED],[1],[Define if using boinc library])
AC_SUBST(BOINC_CFLAGS)
AC_SUBST(BOINC_LIBS)
fi
# record the libraries needed for linking lal
......
......@@ -7,5 +7,5 @@ Name: LAL
Description: LSC Algorithm Library
Version: @VERSION@
Requires: fftw3 fftw3f gsl
Libs: -L${libdir} -llal @CUDA_LIBS@
Cflags: -I${includedir} @CUDA_CFLAGS@
Libs: -L${libdir} -llal @CUDA_LIBS@ @BOINC_LIBS@
Cflags: -I${includedir} @CUDA_CFLAGS@ @BOINC_CFLAGS@
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment