9
0
Fork 0

[sandbox] export ELF_CLASS for sandbox

This commit is contained in:
Sascha Hauer 2008-06-03 13:35:35 +02:00
parent beaab972f8
commit 9e6ee5e795
1 changed files with 5 additions and 1 deletions

View File

@ -35,17 +35,21 @@ SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
ifeq ($(SUBARCH),x86_64)
ELF_ARCH := i386:x86-64
ELF_FORMAT := elf64-x86-64
ELF_CLASDD := ELFCLASS64
endif
ifeq ($(SUBARCH),i386)
ELF_ARCH := $(SUBARCH)
ELF_FORMAT := elf32-$(SUBARCH)
ELF_CLASS := ELFCLASS32
endif
ifeq ($(SUBARCH),powerpc)
ELF_ARCH := powerpc
ELF_FORMAT := elf32-powerpc
ELF_CLASS := ELFCLASS32
endif
export ELF_FORMAT ELF_ARCH SUBARCH
CPPFLAGS += -DELF_CLASS="$(ELF_CLASS)"
export ELF_FORMAT ELF_ARCH SUBARCH ELF_CLASS
# Update machine arch and proc symlinks if something which affects
# them changed. We use .arch to indicate when they were updated
# last, otherwise make uses the target directory mtime.