Skip to content

Commit

Permalink
fix the build
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoff Norton committed Jul 10, 2010
1 parent bae183a commit ca66daa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion env.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ XSTUFF := --sysroot $(SDK) -F$(SDK)/System/Library/Frameworks -F$(SDK)/System/Li
GCC := gcc $(XSTUFF)
GXX := g++ $(XSTUFF)
else
SDK := /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhone3.2.sdk/
SDK := /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/
GCC := /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 --sysroot $(SDK) -arch armv7
GXX := /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++-4.2 --sysroot $(SDK) -arch armv7
endif
4 changes: 3 additions & 1 deletion libgcc/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
include ../env.mk

libgccstuff.dylib:
ar x /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/usr/lib/gcc/arm-apple-darwin10/4.2.1/libgcc.a
python fix.py
python fix2.py
gcc-4.2 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/ -arch armv7 -dynamiclib -exported_symbols_list symbols -o libgccstuff.dylib *.o
$(GCC) -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/ -arch armv7 -dynamiclib -exported_symbols_list symbols -o libgccstuff.dylib *.o
clean:
rm -f *.o libgccstuff.dylib
4 changes: 3 additions & 1 deletion rpc/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
include ../env.mk

all:
python PROTOCOLBUFFERS.py food.proto
gcc -O2 -g3 --sysroot /var/sdk -Dstream_t=int -c food_rpc[12].c
$(GCC) -O2 -g3 --sysroot $(SDK) -Dstream_t=int -c food_rpc[12].c
cp food_rpc2.h food_rpc2.c ../Player2/
clean:
rm *.[cho]

0 comments on commit ca66daa

Please sign in to comment.