2013-09-26 17:14:40 +02:00

46 lines
998 B
Plaintext

$NetBSD: patch-aa,v 1.6 2009/09/09 17:16:36 joerg Exp $
--- uulib/Makefile.in.orig 2002-03-11 03:15:46.000000000 -0600
+++ uulib/Makefile.in
@@ -19,7 +19,7 @@ SHELL = /bin/sh
#
# If you don't have the GNU C compiler installed, set CC=cc here
#
-CC = @CC@
+CC = $(LIBTOOL) --mode=compile @CC@
#
# C Compiler Options
#
@@ -51,11 +51,11 @@ UULIB_OBJ = ${UULIB_SOURCE:.c=.o}
.SUFFIXES:
.SUFFIXES: .c .o
-all: libuu.a
+all: libuu.la
clean:
rm -f [Xx]deview gif2gfp
- rm -f *.o *.a *.so core *~ TAGS
+ rm -f *.o *.la *.so core *~ TAGS
distclean: clean
rm -f config.status config.cache config.log Makefile config.h
@@ -64,13 +64,13 @@ distclean: clean
realclean: distclean
new: clean
- rm -f libuu.a
+ rm -f libuu.la
$(MAKE) all
-libuu.a: $(UULIB_OBJ)
+libuu.la: $(UULIB_OBJ)
rm -f $@
- ar r $@ $(UULIB_OBJ)
- -$(RANLIB) $@
+ $(LIBTOOL) --mode=link @CC@ -o libuu.la $(UULIB_OBJ:.o=.lo) -rpath $(PREFIX)/lib \
+ -version-info 2:0
.c.o:
$(CC) -c $(CFLAGS) $(VDEF) $<