Skip to content

Commit

Permalink
Merge pull request #534 from dcstes/lseekfix
Browse files Browse the repository at this point in the history
SunOS change: make sure lseek64 is used (configure in 32bit)
  • Loading branch information
eliotmiranda committed Nov 9, 2020
2 parents 0748fb6 + f5d8be2 commit 8114f36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion build.sunos32x86/squeak.cog.spur/build/mvm
Expand Up @@ -10,8 +10,10 @@ esac
# Spur VM with VM profiler and threaded heartbeat
MAKE=gmake
INSTALLDIR=sqcogspursunosht/usr
# GNU configure AC_SYS_LARGEFILE is not adding -D_FILE_OFFSET_BITS (config.h)
# to use lseek64 instead of lseek, must -D it here
# Some gcc versions create a broken VM using -O2
OPT="-g -DAIO_DEBUG -DNDEBUG -DDEBUGVM=0"
OPT="-g -DAIO_DEBUG -DNDEBUG -DDEBUGVM=0 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"

if [ $# -ge 1 ]; then
INSTALLDIR="$1"; shift
Expand Down
4 changes: 3 additions & 1 deletion build.sunos32x86/squeak.stack.spur/build/mvm
Expand Up @@ -9,8 +9,10 @@ fi ;;
esac
# Stack Spur VM with VM profiler and threaded heartbeat
INSTALLDIR=sqstkspursunosht/usr
# GNU configure AC_SYS_LARGEFILE is not adding -D_FILE_OFFSET_BITS (config.h)
# to use lseek64 instead of lseek, must -D it here
# Some gcc versions create a broken VM using -O2
OPT="-g -DAIO_DEBUG -DNDEBUG -DDEBUGVM=0"
OPT="-g -DAIO_DEBUG -DNDEBUG -DDEBUGVM=0 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
MAKE=gmake

if [ $# -ge 1 ]; then
Expand Down

0 comments on commit 8114f36

Please sign in to comment.