gem compiler can receive extra flags

This commit is contained in:
f 2021-10-01 10:35:21 -03:00
parent 6bb7555418
commit 3fb4a1b7d5
2 changed files with 2 additions and 1 deletions

View file

@ -23,6 +23,7 @@ find build/ -type f |
GEM_VERSION="${GEM_VERSION}" \
EXTRA_PKGS="${EXTRA_PKGS}" \
EXTRA_GEMS="${EXTRA_GEMS}" \
GEM_COMPILER_FLAGS="${GEM_COMPILER_FLAGS}" \
/usr/local/bin/bootstrap
dirname "${BUILT}" | xargs mkdir -p

View file

@ -13,5 +13,5 @@ cd cache/
gem fetch --source=https://gems.${SUTTY} --platform=ruby --version ${GEM_VERSION} ${GEM_NAME}
cd ../gems/
gem compile -V --prune --strip "strip --strip-unneeded" "../cache/${GEM_NAME}-${GEM_VERSION}.gem"
gem compile -V --prune --strip "strip --strip-unneeded" ${GEM_COMPILER_FLAGS} "../cache/${GEM_NAME}-${GEM_VERSION}.gem"
gem inabox -o "${GEM_NAME}-${GEM_VERSION}-${PLATFORM}.gem" --host https://${HTTP_BASIC_USER}:${HTTP_BASIC_PASSWORD}@gems.${SUTTY}