95d466afdff9162d736eb802194986e7a6769ec6
[dragonfly.git] / bin / cpdup / README
1 $DragonFly: src/bin/cpdup/Attic/README,v 1.1 2006/09/16 18:24:37 dillon Exp $
2
3                             README FILE FOR CPDUP
4
5     The manual page for cpdup is "cpdup.1".  This file describes various
6     porting issues.  
7
8     Most BSDs should just be able to compile cpdup using the Makefile.
9
10 Linux:
11     This script should suffice when compiling under linux.  For some reason
12     that I cannot fathom, linux defaults to using a 32 bit off_t.  It makes
13     no sense at all to me why they would want to do this, BSDs went to
14     a 64 bit default off_t over 15 years ago.  In anycase, fixing it 
15     requires a few -D options.
16
17     #!/bin/csh
18     #
19     cd cpdup
20     rm -f md5.c
21     rm -f *.o
22     cc -c -D__unused= -D_GNU_SOURCE -D__USE_FILE_OFFSET64 -DNOMD5 *.c
23     cc -D__unused= -D_GNU_SOURCE -D__USE_FILE_OFFSET64 -DNOMD5 *.o -o ~/bin/cpdup
24