Permalink
Browse files

also set -arch in LDFLAGS when compiling on OSX that is not properly …

…recognised as 64bit
  • Loading branch information...
1 parent d1f60e7 commit c10d94dcb0a5d4b66baa46cf656c38bff07d576a @mpapis mpapis committed Aug 1, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 core/internal/shell/package/functions
@@ -348,6 +348,9 @@ __sm.package.set.cflags()
__sm.string.match " -m" " ${CFLAGS}" ||
__sm.string.contains.word "-arch" "${CFLAGS}" ||
CFLAGS="-arch x86_64${CFLAGS:+ }${CFLAGS:-}"
+ __sm.string.match " -m" " ${LDFLAGS}" ||
+ __sm.string.contains.word "-arch" "${LDFLAGS}" ||
+ LDFLAGS="-arch x86_64${LDFLAGS:+ }${LDFLAGS:-}"
fi
}

0 comments on commit c10d94d

Please sign in to comment.