${G_TESTS}: ${TARGET_$D}
${G_TESTS}-${DIRNAME}: ${TARGET_$D}
-# HACK
-${TARGETTMP_$D}: tests/bind/libbear.so.0
+# this test depends on the G_LIB library
+${TARGETTMP_$D}: ${WORKINGDIR_$P}${SONAME_${G_LIB}}
# how to link the main target
${TARGETTMP_$D}: ${L_OBJS_$D} | $${@D}