Permalink
Browse files

resolve make error when llvm doesn't have powerpc

% make
cc -Wall -Wextra -ansi -pendantic -arch i386 -arch ppc -arch x86_64 -mmacosx-version-min=10.5   -c -o test.o test.c
llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/powerpc-apple-darwin10-llvm-gcc-4.2': execvp: No such file or directory
lipo: can't figure out the architecture type of: /var/folders/MT/MTdESo89GBCaGM7Hevp5+E+++TI/-Tmp-//ccG0JJrt.out
make: *** [test.o] Error 255
  • Loading branch information...
1 parent 2697c6a commit 6fdf4be461077e368fd9fd70e00507180687cdef @trevor trevor committed Jun 25, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 Makefile
View
4 Makefile
@@ -1,4 +1,6 @@
-ARCHES = i386 ppc x86_64
+# use for ppc support:
+# ARCHES = i386 ppc x86_64
+ARCHES = i386 x86_64
ARCH_FLAGS = $(ARCHES:%=-arch %)
CFLAGS ?= -Wall -Wextra -ansi -pendantic

0 comments on commit 6fdf4be

Please sign in to comment.