osloup / rpms / openjade

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