diff --git a/spack_repo/packages/dwd-icon-tools/package.py b/spack_repo/packages/dwd-icon-tools/package.py
index 368a9c032f95b2dbf2d62a517c47c42b0902cebb..b24c29b2ef64ab67fcc286cbf265bb92a65677c1 100644
--- a/spack_repo/packages/dwd-icon-tools/package.py
+++ b/spack_repo/packages/dwd-icon-tools/package.py
@@ -45,6 +45,7 @@ class DwdIconTools(Package):
     version("2.5.2", branch="icontools-2.5.2")
 
     depends_on("netcdf-c")
+    depends_on("netcdf-fortran")
     depends_on("eccodes")
     depends_on("libxml2")
     #
@@ -79,8 +80,10 @@ class DwdIconTools(Package):
 #           "F77": spec["mpi"].mpif77,
             "CXXFLAGS": "-O2 -g -fopenmp -Wunused -DNOMPI",
             "FCFLAGS": "-I/usr/include --std=f2008 -O2 -g -cpp -fopenmp -fbounds-check -Wunused -DNOMPI",
-            "LIBS": f"-L{spec['libxml2'].prefix.lib} -leccodes -lgfortran -lhdf5 -lxml2",
+            "LIBS": f"-L{spec['libxml2'].prefix.lib} -L{spec['netcdf-c'].prefix.lib} -lnetcdf -L{spec['netcdf-fortran'].prefix.lib} -lnetcdff -leccodes -lgfortran -lhdf5 -lxml2",
         }
+
+
         for variable, value in env_variables_to_set.items():
                 env.set(variable, value)
 
@@ -91,7 +94,8 @@ class DwdIconTools(Package):
             f"--prefix={prefix}",
             "--enable-grib2",
             "--enable-iso-c-interface",
-            f"--with-netcdf={spec['netcdf-c'].prefix}"
+            f"--with-netcdf={spec['netcdf-c'].prefix}",
+            "LIBS": f"-L{spec['libxml2'].prefix.lib} -leccodes -lgfortran -lhdf5 -lxml2",
         ]
 
         configure(*options)