Permalink
Browse files

make sure to compile 64bit pacckages on 64bit OSX, why do they report…

… it as 32bit?
  • Loading branch information...
mpapis committed Aug 1, 2013
1 parent 2a07251 commit 9a1ceface6e45f7e5e9ed3620e3d6e1b789acf72
Showing with 8 additions and 1 deletion.
  1. +8 −1 core/internal/shell/package/functions
@@ -340,10 +340,17 @@ __sm.package.set.cflags()
{
trace_filter package || set -o xtrace
export CFLAGS
- if ! __sm.string.contains.word "-I${active_path}/include" "${CFLAGS}"
+ if
+ ! __sm.string.contains.word "-I${active_path}/include" "${CFLAGS}"
then
CFLAGS="-I${active_path}/include${CFLAGS:+ }${CFLAGS:-}"
fi
+ if
+ ! __sm.string.match " -m" " ${CFLAGS}" &&
+ __sm.os.type.is darwin && __sm.os.arch.type.is x86_64
+ then
+ CFLAGS="-m64${CFLAGS:+ }${CFLAGS:-}"
+ fi
}
__sm.package.set.cpath()

0 comments on commit 9a1cefa

Please sign in to comment.