1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/mail/imap-uw/files/patch-ab
Thomas Gellekum cd10d0e6bf Upgrade to 4.2.
PR:		7452
Submitted by:	Adrian Penisoara <ady@freebsd.ady.ro>
1998-07-31 06:47:02 +00:00

78 lines
2.1 KiB
Plaintext

--- src/osdep/unix/Makefile.orig Thu Jul 16 22:12:22 1998
+++ src/osdep/unix/Makefile Tue Jul 21 16:38:38 1998
@@ -93,7 +93,7 @@
dummy.o pseudo.o netmsg.o flstring.o fdstring.o \
rfc822.o nntp.o smtp.o imap4r1.o pop3.o \
unix.o mbox.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o mx.o
-CFLAGS=$(BASECFLAGS) $(EXTRACFLAGS)
+CFLAGS+=$(BASECFLAGS) $(EXTRACFLAGS)
MAKE=make
MV=mv
RM=rm -rf
@@ -108,6 +108,11 @@
PASSWDTYPE=$(PASSWDTYPE) AFSDIR=$(AFSDIR) GSSDIR=$(GSSDIR)
BUILD=$(MAKE) build $(BUILDOPTIONS) $(EXTRASPECIALS)
+# Need this for the shared library rule to work correctly
+.SUFFIXES: .o .so
+SHLIB=libc-client.so.2.1
+SOFILES=${BINARIES:.o=.so}
+
# Here if no make argument established
missing: osdep.h
@@ -179,11 +184,11 @@
BASECFLAGS="-g -Dconst= -DNFSKLUDGE"
bsf: # FreeBSD
- $(BUILD) OS=bsi SIGTYPE=psx \
+ $(BUILD) $(SHLIB) OS=bsi SIGTYPE=psx \
SPOOLDIR=/var \
ACTIVEFILE=/usr/local/news/lib/active \
RSHPATH=/usr/bin/rsh \
- BASECFLAGS="-g -O -pipe -DNFSKLUDGE" \
+ BASECFLAGS="-DNFSKLUDGE -DIGNORE_LOCK_EACCES_ERRORS" \
BASELDFLAGS="-lcrypt"
bsi: # BSD/i386
@@ -565,10 +570,17 @@
@cat ARCHIVE
@$(SH) ARCHIVE
+$(SHLIB): $(SOFILES)
+ ld -Bshareable -x -o $(SHLIB) $(SOFILES)
+
+.c.so: osdep.h
+ $(CC) -fpic -DPIC -c $(CFLAGS) ${@:.so=.c} -o $@
+
# Cleanup
clean:
sh -c '$(RM) auths.c flockbsd.c linkage.[ch] siglocal.c osdep*.[ch] *.o ARCHIVE *FLAGS *TYPE $(ARCHIVE) || true'
+ $(RM) *.so $(SHLIB)
# Dependencies
@@ -602,7 +614,7 @@
# OS-dependent
-osdep.o:mail.h misc.h env.h fs.h ftl.h nl.h tcp.h \
+OSDEPS= mail.h misc.h env.h fs.h ftl.h nl.h tcp.h \
osdep.h env_unix.h tcp_unix.h \
osdep.c env_unix.c fs_unix.c ftl_unix.c nl_unix.c tcp_unix.c \
auths.c flock.c flockbsd.c flcksafe.c fsync.c gethstid.c \
@@ -614,7 +626,12 @@
write.c \
strerror.c strpbrk.c strstr.c strtok.c strtoul.c \
OSCFLAGS
+
+osdep.o: $(OSDEPS)
$(CC) $(CFLAGS) `cat OSCFLAGS` -c osdep.c
+
+osdep.so: $(OSDEPS)
+ $(CC) $(CFLAGS) `cat OSCFLAGS` -c osdep.c -o $@ -fpic -DPIC
osdep.c: osdepbas.c osdepckp.c osdeplog.c
sh -c '$(RM) osdep.c || true'