Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

… it as 32bit?
  • Loading branch information...
commit 9a1ceface6e45f7e5e9ed3620e3d6e1b789acf72 1 parent 2a07251
@mpapis mpapis authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 core/internal/shell/package/functions
View
9 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()
Please sign in to comment.
Something went wrong with that request. Please try again.