02c38f606c
This addresses one of the issues in PR 30019.
21 lines
798 B
Text
21 lines
798 B
Text
$NetBSD: patch-ae,v 1.3 2009/01/11 09:09:09 minskim Exp $
|
|
|
|
--- Makefile.prog.in.orig 2002-01-22 03:57:53.000000000 -0800
|
|
+++ Makefile.prog.in
|
|
@@ -12,14 +12,14 @@ LINKFLAGS = @LINKFLAGS@
|
|
|
|
ALL_LIBS = $(XLIBS) $(LIBS)
|
|
Makefile.lt:
|
|
- echo 'LT_LIBS='`echo $(ALL_LIBS)|sed 's/\.a/.la/g'` >Makefile.lt
|
|
+ echo 'LT_LIBS='`echo $(ALL_LIBS)|sed -e 's/\.a/.la/g' -e 's/-l[a-z]*//g'` >Makefile.lt
|
|
|
|
PROG:=$(shell echo "$(PROG)" | sed '@program_transform_name@')
|
|
|
|
all: $(PROG)
|
|
|
|
$(PROG): $(OBJS) $(COBJS) $(LT_LIBS)
|
|
- $(LIBTOOL) --mode=link $(CXX) $(LINKFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(COBJS) $(LT_LIBS)
|
|
+ $(LIBTOOL) --mode=link $(CXX) $(LINKFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(COBJS) `echo $(ALL_LIBS)|sed -e 's/\.a/.la/g'`
|
|
|
|
install: $(PROG)
|
|
-test -d $(DESTDIR)$(bindir) || \
|