diff -ur bind-4.9.4-P1/Makefile bind-4.9.4-P1.LNX-shared-ELF/Makefile --- bind-4.9.4-P1/Makefile Mon Aug 5 16:31:21 1996 +++ bind-4.9.4-P1.LNX-shared-ELF/Makefile Sun Oct 13 17:43:03 1996 @@ -62,7 +62,7 @@ DESTDIR = INCL = include -RES = res/libresolv.a +RES = res/libresolv.so COMPLIB = compat/lib/lib44bsd.a # The default build parameters are given for 4.4 BSD. They should @@ -110,16 +110,16 @@ #(Linux - on modern systems, all you need to do is rename or remove # compat/include/sys/cdefs.h. See doc/info/Linux for more information.) -#CC = gcc $(CPPFLAGS) -#CDEBUG = -g -#CPPFLAGS = -DSYSV -#LIBS = -lfl -#DESTEXEC = /usr/sbin -#DESTMAN = /usr/man -#DESTHELP = /usr/lib -#CATEXT = $$$$N -#PS = ps -p -#IOT = IOT +CC = gcc $(CPPFLAGS) +CDEBUG = -g +CPPFLAGS = -DSYSV +LIBS = -lfl +DESTEXEC = /usr/sbin +DESTMAN = /usr/man +DESTHELP = /usr/lib +CATEXT = $$$$N +PS = ps -p +IOT = IOT #(CRAY) #CDEBUG = -g Only in bind-4.9.4-P1/compat/include/sys: cdefs.h diff -ur bind-4.9.4-P1/named/Makefile bind-4.9.4-P1.LNX-shared-ELF/named/Makefile --- bind-4.9.4-P1/named/Makefile Fri Dec 22 18:20:31 1995 +++ bind-4.9.4-P1.LNX-shared-ELF/named/Makefile Sun Oct 13 17:37:33 1996 @@ -78,7 +78,7 @@ COMPINCL = ../compat/include INCL= ../include -RES= ../res/libresolv.a +RES= ../res/libresolv.so DESTSBIN = ${DESTDIR}/usr/sbin DESTEXEC = ${DESTDIR}/usr/libexec PIDDIR = /var/run diff -ur bind-4.9.4-P1/res/Makefile bind-4.9.4-P1.LNX-shared-ELF/res/Makefile --- bind-4.9.4-P1/res/Makefile Mon Aug 5 16:31:35 1996 +++ bind-4.9.4-P1.LNX-shared-ELF/res/Makefile Sun Oct 13 18:19:16 1996 @@ -68,10 +68,11 @@ DEFS= LOCDEFS= -DUSE_OPTIONS_H INSTALL= install +LDSHARED= gcc -shared -Wl,-soname AROBJS= ${ARPREF} ${OBJS} ${ARSUFF} -CFLAGS= ${CDEBUG} -I${INCL} -I${COMPINCL} ${DEFS} ${LOCDEFS} +CFLAGS= ${CDEBUG} -I${INCL} -I${COMPINCL} ${DEFS} ${LOCDEFS} -fPIC SRCS= herror.c res_debug.c res_data.c \ res_comp.c res_init.c res_mkquery.c res_query.c res_send.c \ @@ -85,17 +86,18 @@ gethnamaddr.o sethostent.o nsap_addr.o hostnamelen.o \ inet_addr.o inet_ntop.o inet_pton.o -all: libresolv.a +all: libresolv.so -libresolv.a: ${OBJS} - ${AR} libresolv.a ${AROBJS} - $(RANLIB) libresolv.a +libresolv.so: libresolv.so.${VER} -install: ${DESTDIR}${DESTLIB}/libresolv.a - -${DESTDIR}${DESTLIB}/libresolv.a: libresolv.a - ${INSTALL} -c -o bin -g bin -m 644 libresolv.a ${DESTDIR}${DESTLIB}/ - ( cd ${DESTDIR}${DESTLIB} ; $(RANLIB) libresolv.a ) +libresolv.so.${VER}: ${OBJS} + ${LDSHARED},libresolv.so.4 -o libresolv.so.${VER} ${OBJS} + rm -f libresolv.so; ln -s $@ libresolv.so + +install: libresolv.so.${VER} + rm -f ${DESTDIR}${DESTLIB}/libresolv.so ${DESTDIR}${DESTLIB}/libresolv.so.${VER} + ${INSTALL} -c -o bin -g bin -m 644 libresolv.so.${VER} ${DESTDIR}${DESTLIB}/ + ln -s ${DESTDIR}${DESTLIB}/libresolv.so.${VER} ${DESTDIR}${DESTLIB}/libresolv.so; ldconfig .c.o: ${CC} ${CPPFLAGS} ${CFLAGS} -c $*.c @@ -103,8 +105,8 @@ ${LDS} mv a.out $*.o clean: FRC - rm -f errs a.out core libresolv.a tags .depend - rm -f *.o *.BAK *.CKP *~ *.orig + rm -f errs a.out core tags .depend + rm -f *.o *.BAK *.CKP *~ *.orig libresolv.so* depend: FRC mkdep ${CPPFLAGS} -I${INCL} -I${COMPINCL} ${DEFS} ${SRCS}