mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 925330 - don't use HAVE_64BIT_OS when building elfhack; r=glandium
This commit is contained in:
parent
a8e14b1b3c
commit
c5359bf8bd
@ -9,12 +9,12 @@
|
||||
#undef Elf_Ehdr
|
||||
#undef Elf_Addr
|
||||
|
||||
#if BITS == 32
|
||||
#define Elf_Ehdr Elf32_Ehdr
|
||||
#define Elf_Addr Elf32_Addr
|
||||
#else
|
||||
#if defined(__LP64__)
|
||||
#define Elf_Ehdr Elf64_Ehdr
|
||||
#define Elf_Addr Elf64_Addr
|
||||
#else
|
||||
#define Elf_Ehdr Elf32_Ehdr
|
||||
#define Elf_Addr Elf32_Addr
|
||||
#endif
|
||||
|
||||
extern __attribute__((visibility("hidden"))) void original_init(int argc, char **argv, char **env);
|
||||
|
@ -30,6 +30,5 @@ $(CSRCS): %.c: ../inject.c
|
||||
|
||||
GARBAGE += $(CSRCS)
|
||||
|
||||
DEFINES += -DBITS=$(if $(HAVE_64BIT_OS),64,32)
|
||||
CFLAGS := -O2 -fno-stack-protector $(filter -m% -I%,$(CFLAGS))
|
||||
$(CPU)-noinit.$(OBJ_SUFFIX): DEFINES += -DNOINIT
|
||||
|
Loading…
Reference in New Issue
Block a user