6fed4a
--- openjade-1.3.1/Makefile.prog.in.sopwith	2002-01-22 06:57:53.000000000 -0500
6fed4a
+++ openjade-1.3.1/Makefile.prog.in	2003-02-11 16:59:44.000000000 -0500
6fed4a
@@ -1,3 +1,4 @@
6fed4a
+
6fed4a
 #
6fed4a
 #  Makefile.prog.in - Makerules for bilding programs
6fed4a
 #
6fed4a
@@ -11,15 +12,17 @@
6fed4a
 LINKFLAGS = @LINKFLAGS@
6fed4a
 
6fed4a
 ALL_LIBS = $(XLIBS) $(LIBS)
6fed4a
+LT_LIBS = $(shell echo $(XLIBS) | sed 's/\.a/.la/g')
6fed4a
+LT_ALL_LIBS = $(shell echo $(ALL_LIBS) | sed 's/\.a/.la/g')
6fed4a
 Makefile.lt:
6fed4a
-	echo 'LT_LIBS='`echo $(ALL_LIBS)|sed 's/\.a/.la/g'` >Makefile.lt
6fed4a
+	echo > Makefile.lt
6fed4a
 
6fed4a
 PROG:=$(shell echo "$(PROG)" | sed '@program_transform_name@')
6fed4a
 
6fed4a
 all: $(PROG)
6fed4a
 
6fed4a
 $(PROG): $(OBJS) $(COBJS) $(LT_LIBS)
6fed4a
-	$(LIBTOOL) --mode=link $(CXX) $(LINKFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(COBJS) $(LT_LIBS)
6fed4a
+	$(LIBTOOL) --mode=link $(CXX) $(LINKFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(COBJS) $(LT_ALL_LIBS)
6fed4a
 
6fed4a
 install: $(PROG)
6fed4a
 	-test -d $(DESTDIR)$(bindir) || \