--- src/makefiles/common.orig	Sun Oct  3 21:51:35 1999
+++ src/makefiles/common	Wed Oct 20 20:35:25 1999
@@ -48,7 +48,11 @@
 	${CC} ${LFLAGS} -o $@ ${UTIL_OBJS} ftprestart.o rdservers.o ${XLIBS}
 
 ftpd: ${OBJS} ${XOBJS} ../support/libsupport.a
+.if defined(PACKAGE_BUILDING)
 	${CC} ${LFLAGS} -o $@ ${OBJS} ${XOBJS} ${XLIBS}
+.else
+	${CC} -static ${LFLAGS} -o $@ ${OBJS} ${XOBJS} ${XLIBS}
+.endif
 
 ckconfig: ${UTIL_OBJS} ckconfig.o rdservers.o 
 	${CC} ${LFLAGS} -o $@ ${UTIL_OBJS} ckconfig.o rdservers.o ${XLIBS}
