--- a/src/gl/tests/Makefile.am
+++ b/src/gl/tests/Makefile.am
@@ -1476,9 +1476,6 @@
 
 ## begin gnulib module nanosleep
 
-if GL_COND_OBJ_NANOSLEEP
-libtests_a_SOURCES += nanosleep.c
-endif
 
 ## end   gnulib module nanosleep
 
