Added largefile support under Linux.
committer: mfx <mfx> 1034637175 +0000
This commit is contained in:
@@ -195,6 +195,7 @@ LDFLAGS += $(LDLIBDIRS)
|
|||||||
ifeq ($(target),linux)
|
ifeq ($(target),linux)
|
||||||
override arch := $(shell uname -m | sed -e 's/^i[3456789]86$$/i386/')
|
override arch := $(shell uname -m | sed -e 's/^i[3456789]86$$/i386/')
|
||||||
DEFS += '-DUPX_CONFIG_H="config_h/linux.h"'
|
DEFS += '-DUPX_CONFIG_H="config_h/linux.h"'
|
||||||
|
DEFS += -D_FILE_OFFSET_BITS=64
|
||||||
LDLIBS += -lmcheck
|
LDLIBS += -lmcheck
|
||||||
ifeq ($(arch),i386)
|
ifeq ($(arch),i386)
|
||||||
CC += -march=i386 -mcpu=i586
|
CC += -march=i386 -mcpu=i586
|
||||||
|
|||||||
+1
-1
@@ -472,7 +472,7 @@ void Packer::handleStub(InputFile *fif, OutputFile *fo, long size)
|
|||||||
|
|
||||||
void Packer::checkOverlay(unsigned overlay)
|
void Packer::checkOverlay(unsigned overlay)
|
||||||
{
|
{
|
||||||
assert((off_t)overlay >= 0);
|
assert((int)overlay >= 0);
|
||||||
assert((off_t)overlay < file_size);
|
assert((off_t)overlay < file_size);
|
||||||
if (overlay == 0)
|
if (overlay == 0)
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user