@ -6,7 +6,7 @@ diff -up cfitsio/Makefile.in.orig cfitsio/Makefile.in
libcfitsio${SHLIB_SUFFIX}: ${OBJECTS}
- ${SHLIB_LD} ${LDFLAGS} -o $@ ${OBJECTS}
+ ${SHLIB_LD} ${LDFLAGS} -o $@ ${OBJECTS} -lm
+ ${SHLIB_LD} ${LDFLAGS} -o $@ ${OBJECTS} -pthread -lm
install: libcfitsio.a $(INSTALL_DIRS)
@if [ -f libcfitsio.a ]; then \