add -lm to gsl link flags

This commit is contained in:
Hari Nair
2025-04-25 17:40:57 +00:00
parent 81fffcd204
commit ec207b7a63

View File

@@ -42,6 +42,10 @@ if [ ! -d $GSL_HOME ]; then
fi
tar xfz gsl-${GSL_VERSION}.tar.gz
(
if [ "$(uname)" == "Linux" ]; then
# Not sure why, but -lm is needed on some Linux systems
LDFLAGS="${LDFLAGS} -lm"
fi
cd gsl-${GSL_VERSION}
./configure --prefix ${GSL_HOME}
# make install cannot find certain header files?