--- Makefile.prog.in
+++ Makefile.prog.in
@@ -13,6 +13,7 @@
 ALL_LIBS = $(XLIBS) $(LIBS)
 Makefile.lt:
        echo 'LT_LIBS='`echo $(ALL_LIBS)|sed 's/\.a/.la/g'` >Makefile.lt
+       echo '.PHONY: -losp' >>Makefile.lt

 PROG:=$(shell echo "$(PROG)" | sed '@program_transform_name@')

