$NetBSD: patch-ag,v 1.9 2011/09/05 20:24:56 cheusov Exp $ --- unix/makefile.orig 1994-03-25 13:01:31.000000000 -0600 +++ unix/makefile @@ -4,8 +4,7 @@ O = o # commands -CC = cc -LIB = ar +CC := ${LIBTOOL} --tag=CC --mode=compile ${CC} # name of temporary library script TEMPFILE = $(TEMP)/temp.mak @@ -14,18 +13,18 @@ STDINCDIR=/usr/include # The places to look for include files (in order). -INCL = -I. -I$(RSAREFDIR) -I$(STDINCDIR) +INCL = -I. -I$(RSAREFDIR) # name of main executable to build PROG = all # Normal C flags. -CFLAGS = $(INCL) -O -c -DPROTOTYPES=1 +CFLAGS += $(INCL) -c -DPROTOTYPES=1 MFLAGS = -I. -I$(RSAREFDIR) # The location of the common source directory. RSAREFDIR = ../source/ -RSAREFLIB = rsaref.a +RSAREFLIB = librsaref.la # The location of the demo source directory. RDEMODIR = ../rdemo/ @@ -41,8 +40,7 @@ $(RSAREFLIB) : desc.$(O) digit.$(O) md2c.$(O) md5c.$(O) nn.$(O) prime.$(O)\ rsa.$(O) r_encode.$(O) r_dh.$(O) r_enhanc.$(O) r_keygen.$(O) r_random.$(O)\ r_stdlib.$(O) - $(LIB) r $@ $? - ranlib $@ + ${LIBTOOL} --tag=CC --mode=link cc -o $@ ${?:.o=.lo} -rpath ${PREFIX}/lib -version-info 3:0 rdemo.$(O) : $(RDEMODIR)rdemo.c $(RSAREFDIR)global.h $(RSAREFDIR)rsaref.h $(CC) $(CFLAGS) $(RDEMODIR)rdemo.c