From: Felix Fietkau Date: Fri, 6 Nov 2009 08:14:58 +0000 (+0100) Subject: fix compile on snow leopard X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=004715ec045f96a870f54371cdeae58132ac43a6;p=uci.git fix compile on snow leopard --- diff --git a/Makefile.inc b/Makefile.inc index ab5eb25..59edeeb 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -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