ncompress/ncompress-4.2.4.4-make.patch
2021-02-02 18:21:22 +08:00

24 lines
625 B
Diff

diff --git a/Makefile.def b/Makefile.def
index 0d0e6ba..5763398 100644
--- a/Makefile.def
+++ b/Makefile.def
@@ -32,7 +32,14 @@ MANDIR=$(PREFIX)/share/man/man1
# -DDEF_ERRNO=1 Define errno (not defined in errno.h).
# -DMAXSEG_64K=1 -BITS=16 Support segment processor like 80286.
#
-options= $(CFLAGS) $(CPPFLAGS) -DDIRENT=1 -DUSERMEM=800000 -DREGISTERS=3
+options= $(CFLAGS) $(CPPFLAGS) -DDIRENT=1 -DUSERMEM=800000 -DREGISTERS=20 \
+ -D_FILE_OFFSET_BITS=64 \
+ -D_LARGEFILE_SOURCE \
+ -DNOFUNCDEF=1 \
+ -DOBUFSIZ=1024 \
+ -DUTIME_H \
+ -DSYSDIR=1 \
+ $(ARCH_FLAGS)
# library options
LBOPT= $(LDFLAGS)
--
1.8.3.1