diff --git a/configure.ac b/configure.ac
index 3628c1b7f32afbe67d862b6b07412bd9465f512a..554c19f602bed8cf46bf1e2a6af02e98576c39fe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1351,7 +1351,7 @@ if test "x$with_grackle" != "xno"; then
         AC_DEFINE([CONFIG_BFLOAT_8],1,[Use doubles in grackle])
       ],
       [AC_MSG_ERROR(Cannot find grackle library!)],
-      [$GRACKLE_LIBS $GRACKLE_INCS $FCLIBS -Wno-strict-prototypes]
+      [$GRACKLE_LIBS $GRACKLE_INCS -Wno-strict-prototypes]
    )
 fi
 AC_SUBST([GRACKLE_LIBS])