From 53b59114e6a1f2e04ed99db5a0cce3e0d8dfd0f3 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 21 Dec 2009 18:30:58 +0000 Subject: [PATCH] Use -m32 instead of a uname -m check. --- Darwin.mk | 6 ++++-- makefile | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Darwin.mk b/Darwin.mk index db1dc26..0a99576 100644 --- a/Darwin.mk +++ b/Darwin.mk @@ -9,7 +9,10 @@ library += -framework WebKit library += -liconv flags += -I/usr/include/ffi -ifeq ($(uname_m),i386) +ifeq ($(uname_p),i386) +flags += -m32 +endif + flags += -DCY_ATTACH code += Handler.o inject += Mach/Inject.o @@ -17,7 +20,6 @@ Mach/Inject.o: Trampoline.t.hpp Baton.hpp %.t.hpp: %.t.cpp $(target)gcc -c -fno-exceptions -Iinclude -o $*.t.o $< && { file=($$($(target)otool -l $*.t.o | sed -e 'x; /^1/ { x; /^ *filesize / { s/^.* //; p; }; /^ *fileoff / { s/^.* //; p; }; x; }; x; /^ *cmd LC_SEGMENT$$/ { s/.*/1/; x; }; d;')); od -t x1 -j $${file[0]} -N $${file[1]} $*.t.o | sed -e 's/^[^ ]*//' | tr $$'\n' ' ' | sed -e 's/ */ /g;s/^ *//;s/ $$//;s/ /,/g;s/\([^,][^,]\)/0x\1/g' | sed -e 's/^/static const char $*_[] = {/;s/$$/};/' && echo && echo "/*" && $(target)otool -vVt $*.t.o && echo "*/"; } >$@ && rm -f $*.t.o -endif include Execute.mk include ObjectiveC.mk diff --git a/makefile b/makefile index 42ba7d6..f582252 100644 --- a/makefile +++ b/makefile @@ -46,7 +46,6 @@ depends := restart ?= $(MAKE) uname_s ?= $(shell uname -s) uname_p ?= $(shell uname -p) -uname_m ?= $(shell uname -m) -include $(uname_s).mk -include $(uname_s)-$(uname_p).mk -- 2.45.2