[Git][cmucl/cmucl][issue-125-unix-stat-wrong] Set _LARGEFILE_SOURCE and _FILE_OFFSET_BITS here
Raymond Toy (@rtoy)
gitlab at common-lisp.net
Sun Aug 14 15:35:09 UTC 2022
Raymond Toy pushed to branch issue-125-unix-stat-wrong at cmucl / cmucl
Commits:
fdec8705 by Raymond Toy at 2022-08-14T08:34:55-07:00
Set _LARGEFILE_SOURCE and _FILE_OFFSET_BITS here
Enable large file support by setting the c flags. Needed by
os-common.c to support large files for os_stat and friends.
- - - - -
2 changed files:
- src/lisp/Config.x86_linux
- src/lisp/Config.x86_linux_clang
Changes:
=====================================
src/lisp/Config.x86_linux
=====================================
@@ -4,6 +4,7 @@ include Config.x86_common
CFLAGS += $(COPT)
CPPFLAGS += -m32 -D__NO_CTYPE
CFLAGS += -rdynamic -march=pentium4 -mfpmath=sse -mtune=generic
+CFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
UNDEFSYMPATTERN = -Xlinker -u -Xlinker &
ASSEM_SRC += linux-stubs.S
=====================================
src/lisp/Config.x86_linux_clang
=====================================
@@ -9,6 +9,7 @@ CFLAGS += $(COPT)
# (-mtune=pentium4), the first chip to have sse2; and finally generate
# code assuming instructions can trap (-ftrapping-math).
CFLAGS += -msse2 -mtune=pentium4 -ftrapping-math
+CFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
UNDEFSYMPATTERN = -Xlinker -u -Xlinker &
ASSEM_SRC += linux-stubs.S
View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/fdec87055478c8f2d10a6c39f52677e40fb8438f
--
View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/fdec87055478c8f2d10a6c39f52677e40fb8438f
You're receiving this email because of your account on gitlab.common-lisp.net.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cmucl-cvs/attachments/20220814/3e45dbf7/attachment.html>
More information about the cmucl-cvs
mailing list