--- Makefile.prog.in.orig 2013-09-02 18:50:59.000000000 -0700 +++ Makefile.prog.in 2013-09-02 18:52:56.000000000 -0700 @@ -12,7 +12,7 @@ LINKFLAGS = @LINKFLAGS@ ALL_LIBS = $(XLIBS) $(LIBS) Makefile.lt: - echo 'LT_LIBS='`echo $(XLIBS)|sed 's/\.a/.la/g'` >Makefile.lt + echo 'LT_LIBS='`echo $(XLIBS)|sed -E 's/\.a([[:space:]]|$$)/.la\1/g'|sed 's|libosp\.la|libosp.dylib|'` >Makefile.lt PROG:=$(shell echo "$(PROG)" | sed '@program_transform_name@')