fix compile on snow leopard
authorFelix Fietkau <nbd@openwrt.org>
Fri, 6 Nov 2009 08:14:58 +0000 (09:14 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 6 Nov 2009 08:14:58 +0000 (09:14 +0100)
Makefile.inc

index ab5eb259be56cd06f7e9c16682ef34086439d48a..59edeebb59db2a6e87ecd378a44e80a5543bf93d 100644 (file)
@@ -23,6 +23,9 @@ ifeq ($(OS),Darwin)
   LINK=$(LD)
   SHLIB_EXT=dylib
   SHLIB_FLAGS=-dylib
+  ifeq ($(shell gcc -dumpmachine),i686-apple-darwin10)
+    SHLIB_FLAGS += -arch x86_64
+  endif
 else
   LINK=$(CC)
   SHLIB_EXT=so