mirror of
https://github.com/docker-library/ruby.git
synced 2022-11-09 11:41:34 -05:00
Add explicit "--build" to our "./configure" invocations
This commit is contained in:
parent
1b6455cc72
commit
be55938d97
15 changed files with 110 additions and 35 deletions
|
@ -18,6 +18,7 @@ RUN set -ex \
|
||||||
\
|
\
|
||||||
&& buildDeps=' \
|
&& buildDeps=' \
|
||||||
bison \
|
bison \
|
||||||
|
dpkg-dev \
|
||||||
libgdbm-dev \
|
libgdbm-dev \
|
||||||
ruby \
|
ruby \
|
||||||
' \
|
' \
|
||||||
|
@ -44,7 +45,11 @@ RUN set -ex \
|
||||||
&& mv file.c.new file.c \
|
&& mv file.c.new file.c \
|
||||||
\
|
\
|
||||||
&& autoconf \
|
&& autoconf \
|
||||||
&& ./configure --disable-install-doc --enable-shared \
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
|
--disable-install-doc \
|
||||||
|
--enable-shared \
|
||||||
&& make -j "$(nproc)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
\
|
\
|
||||||
|
|
|
@ -24,6 +24,7 @@ RUN set -ex \
|
||||||
bzip2-dev \
|
bzip2-dev \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
coreutils \
|
coreutils \
|
||||||
|
dpkg-dev dpkg \
|
||||||
gcc \
|
gcc \
|
||||||
gdbm-dev \
|
gdbm-dev \
|
||||||
glib-dev \
|
glib-dev \
|
||||||
|
@ -63,10 +64,14 @@ RUN set -ex \
|
||||||
&& mv file.c.new file.c \
|
&& mv file.c.new file.c \
|
||||||
\
|
\
|
||||||
&& autoconf \
|
&& autoconf \
|
||||||
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
# the configure script does not detect isnan/isinf as macros
|
# the configure script does not detect isnan/isinf as macros
|
||||||
&& ac_cv_func_isnan=yes ac_cv_func_isinf=yes \
|
&& export ac_cv_func_isnan=yes ac_cv_func_isinf=yes \
|
||||||
./configure --disable-install-doc --enable-shared \
|
&& ./configure \
|
||||||
&& make -j"$(getconf _NPROCESSORS_ONLN)" \
|
--build="$gnuArch" \
|
||||||
|
--disable-install-doc \
|
||||||
|
--enable-shared \
|
||||||
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
\
|
\
|
||||||
&& runDeps="$( \
|
&& runDeps="$( \
|
||||||
|
|
|
@ -31,6 +31,7 @@ RUN set -ex \
|
||||||
&& buildDeps=' \
|
&& buildDeps=' \
|
||||||
autoconf \
|
autoconf \
|
||||||
bison \
|
bison \
|
||||||
|
dpkg-dev \
|
||||||
gcc \
|
gcc \
|
||||||
libbz2-dev \
|
libbz2-dev \
|
||||||
libgdbm-dev \
|
libgdbm-dev \
|
||||||
|
@ -67,7 +68,11 @@ RUN set -ex \
|
||||||
&& mv file.c.new file.c \
|
&& mv file.c.new file.c \
|
||||||
\
|
\
|
||||||
&& autoconf \
|
&& autoconf \
|
||||||
&& ./configure --disable-install-doc --enable-shared \
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
|
--disable-install-doc \
|
||||||
|
--enable-shared \
|
||||||
&& make -j "$(nproc)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
\
|
\
|
||||||
|
|
|
@ -18,6 +18,7 @@ RUN set -ex \
|
||||||
\
|
\
|
||||||
&& buildDeps=' \
|
&& buildDeps=' \
|
||||||
bison \
|
bison \
|
||||||
|
dpkg-dev \
|
||||||
libgdbm-dev \
|
libgdbm-dev \
|
||||||
ruby \
|
ruby \
|
||||||
' \
|
' \
|
||||||
|
@ -44,7 +45,11 @@ RUN set -ex \
|
||||||
&& mv file.c.new file.c \
|
&& mv file.c.new file.c \
|
||||||
\
|
\
|
||||||
&& autoconf \
|
&& autoconf \
|
||||||
&& ./configure --disable-install-doc --enable-shared \
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
|
--disable-install-doc \
|
||||||
|
--enable-shared \
|
||||||
&& make -j "$(nproc)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
\
|
\
|
||||||
|
|
|
@ -24,6 +24,7 @@ RUN set -ex \
|
||||||
bzip2-dev \
|
bzip2-dev \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
coreutils \
|
coreutils \
|
||||||
|
dpkg-dev dpkg \
|
||||||
gcc \
|
gcc \
|
||||||
gdbm-dev \
|
gdbm-dev \
|
||||||
glib-dev \
|
glib-dev \
|
||||||
|
@ -63,10 +64,14 @@ RUN set -ex \
|
||||||
&& mv file.c.new file.c \
|
&& mv file.c.new file.c \
|
||||||
\
|
\
|
||||||
&& autoconf \
|
&& autoconf \
|
||||||
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
# the configure script does not detect isnan/isinf as macros
|
# the configure script does not detect isnan/isinf as macros
|
||||||
&& ac_cv_func_isnan=yes ac_cv_func_isinf=yes \
|
&& export ac_cv_func_isnan=yes ac_cv_func_isinf=yes \
|
||||||
./configure --disable-install-doc --enable-shared \
|
&& ./configure \
|
||||||
&& make -j"$(getconf _NPROCESSORS_ONLN)" \
|
--build="$gnuArch" \
|
||||||
|
--disable-install-doc \
|
||||||
|
--enable-shared \
|
||||||
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
\
|
\
|
||||||
&& runDeps="$( \
|
&& runDeps="$( \
|
||||||
|
|
|
@ -31,6 +31,7 @@ RUN set -ex \
|
||||||
&& buildDeps=' \
|
&& buildDeps=' \
|
||||||
autoconf \
|
autoconf \
|
||||||
bison \
|
bison \
|
||||||
|
dpkg-dev \
|
||||||
gcc \
|
gcc \
|
||||||
libbz2-dev \
|
libbz2-dev \
|
||||||
libgdbm-dev \
|
libgdbm-dev \
|
||||||
|
@ -67,7 +68,11 @@ RUN set -ex \
|
||||||
&& mv file.c.new file.c \
|
&& mv file.c.new file.c \
|
||||||
\
|
\
|
||||||
&& autoconf \
|
&& autoconf \
|
||||||
&& ./configure --disable-install-doc --enable-shared \
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
|
--disable-install-doc \
|
||||||
|
--enable-shared \
|
||||||
&& make -j "$(nproc)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
\
|
\
|
||||||
|
|
|
@ -18,6 +18,7 @@ RUN set -ex \
|
||||||
\
|
\
|
||||||
&& buildDeps=' \
|
&& buildDeps=' \
|
||||||
bison \
|
bison \
|
||||||
|
dpkg-dev \
|
||||||
libgdbm-dev \
|
libgdbm-dev \
|
||||||
ruby \
|
ruby \
|
||||||
' \
|
' \
|
||||||
|
@ -44,7 +45,11 @@ RUN set -ex \
|
||||||
&& mv file.c.new file.c \
|
&& mv file.c.new file.c \
|
||||||
\
|
\
|
||||||
&& autoconf \
|
&& autoconf \
|
||||||
&& ./configure --disable-install-doc --enable-shared \
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
|
--disable-install-doc \
|
||||||
|
--enable-shared \
|
||||||
&& make -j "$(nproc)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
\
|
\
|
||||||
|
|
|
@ -24,6 +24,7 @@ RUN set -ex \
|
||||||
bzip2-dev \
|
bzip2-dev \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
coreutils \
|
coreutils \
|
||||||
|
dpkg-dev dpkg \
|
||||||
gcc \
|
gcc \
|
||||||
gdbm-dev \
|
gdbm-dev \
|
||||||
glib-dev \
|
glib-dev \
|
||||||
|
@ -63,10 +64,14 @@ RUN set -ex \
|
||||||
&& mv file.c.new file.c \
|
&& mv file.c.new file.c \
|
||||||
\
|
\
|
||||||
&& autoconf \
|
&& autoconf \
|
||||||
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
# the configure script does not detect isnan/isinf as macros
|
# the configure script does not detect isnan/isinf as macros
|
||||||
&& ac_cv_func_isnan=yes ac_cv_func_isinf=yes \
|
&& export ac_cv_func_isnan=yes ac_cv_func_isinf=yes \
|
||||||
./configure --disable-install-doc --enable-shared \
|
&& ./configure \
|
||||||
&& make -j"$(getconf _NPROCESSORS_ONLN)" \
|
--build="$gnuArch" \
|
||||||
|
--disable-install-doc \
|
||||||
|
--enable-shared \
|
||||||
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
\
|
\
|
||||||
&& runDeps="$( \
|
&& runDeps="$( \
|
||||||
|
|
|
@ -31,6 +31,7 @@ RUN set -ex \
|
||||||
&& buildDeps=' \
|
&& buildDeps=' \
|
||||||
autoconf \
|
autoconf \
|
||||||
bison \
|
bison \
|
||||||
|
dpkg-dev \
|
||||||
gcc \
|
gcc \
|
||||||
libbz2-dev \
|
libbz2-dev \
|
||||||
libgdbm-dev \
|
libgdbm-dev \
|
||||||
|
@ -67,7 +68,11 @@ RUN set -ex \
|
||||||
&& mv file.c.new file.c \
|
&& mv file.c.new file.c \
|
||||||
\
|
\
|
||||||
&& autoconf \
|
&& autoconf \
|
||||||
&& ./configure --disable-install-doc --enable-shared \
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
|
--disable-install-doc \
|
||||||
|
--enable-shared \
|
||||||
&& make -j "$(nproc)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
\
|
\
|
||||||
|
|
|
@ -18,6 +18,7 @@ RUN set -ex \
|
||||||
\
|
\
|
||||||
&& buildDeps=' \
|
&& buildDeps=' \
|
||||||
bison \
|
bison \
|
||||||
|
dpkg-dev \
|
||||||
libgdbm-dev \
|
libgdbm-dev \
|
||||||
ruby \
|
ruby \
|
||||||
' \
|
' \
|
||||||
|
@ -44,7 +45,11 @@ RUN set -ex \
|
||||||
&& mv file.c.new file.c \
|
&& mv file.c.new file.c \
|
||||||
\
|
\
|
||||||
&& autoconf \
|
&& autoconf \
|
||||||
&& ./configure --disable-install-doc --enable-shared \
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
|
--disable-install-doc \
|
||||||
|
--enable-shared \
|
||||||
&& make -j "$(nproc)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
\
|
\
|
||||||
|
|
|
@ -24,6 +24,7 @@ RUN set -ex \
|
||||||
bzip2-dev \
|
bzip2-dev \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
coreutils \
|
coreutils \
|
||||||
|
dpkg-dev dpkg \
|
||||||
gcc \
|
gcc \
|
||||||
gdbm-dev \
|
gdbm-dev \
|
||||||
glib-dev \
|
glib-dev \
|
||||||
|
@ -63,10 +64,14 @@ RUN set -ex \
|
||||||
&& mv file.c.new file.c \
|
&& mv file.c.new file.c \
|
||||||
\
|
\
|
||||||
&& autoconf \
|
&& autoconf \
|
||||||
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
# the configure script does not detect isnan/isinf as macros
|
# the configure script does not detect isnan/isinf as macros
|
||||||
&& ac_cv_func_isnan=yes ac_cv_func_isinf=yes \
|
&& export ac_cv_func_isnan=yes ac_cv_func_isinf=yes \
|
||||||
./configure --disable-install-doc --enable-shared \
|
&& ./configure \
|
||||||
&& make -j"$(getconf _NPROCESSORS_ONLN)" \
|
--build="$gnuArch" \
|
||||||
|
--disable-install-doc \
|
||||||
|
--enable-shared \
|
||||||
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
\
|
\
|
||||||
&& runDeps="$( \
|
&& runDeps="$( \
|
||||||
|
|
|
@ -31,6 +31,7 @@ RUN set -ex \
|
||||||
&& buildDeps=' \
|
&& buildDeps=' \
|
||||||
autoconf \
|
autoconf \
|
||||||
bison \
|
bison \
|
||||||
|
dpkg-dev \
|
||||||
gcc \
|
gcc \
|
||||||
libbz2-dev \
|
libbz2-dev \
|
||||||
libgdbm-dev \
|
libgdbm-dev \
|
||||||
|
@ -67,7 +68,11 @@ RUN set -ex \
|
||||||
&& mv file.c.new file.c \
|
&& mv file.c.new file.c \
|
||||||
\
|
\
|
||||||
&& autoconf \
|
&& autoconf \
|
||||||
&& ./configure --disable-install-doc --enable-shared \
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
|
--disable-install-doc \
|
||||||
|
--enable-shared \
|
||||||
&& make -j "$(nproc)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
\
|
\
|
||||||
|
|
|
@ -24,6 +24,7 @@ RUN set -ex \
|
||||||
bzip2-dev \
|
bzip2-dev \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
coreutils \
|
coreutils \
|
||||||
|
dpkg-dev dpkg \
|
||||||
gcc \
|
gcc \
|
||||||
gdbm-dev \
|
gdbm-dev \
|
||||||
glib-dev \
|
glib-dev \
|
||||||
|
@ -63,10 +64,14 @@ RUN set -ex \
|
||||||
&& mv file.c.new file.c \
|
&& mv file.c.new file.c \
|
||||||
\
|
\
|
||||||
&& autoconf \
|
&& autoconf \
|
||||||
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
# the configure script does not detect isnan/isinf as macros
|
# the configure script does not detect isnan/isinf as macros
|
||||||
&& ac_cv_func_isnan=yes ac_cv_func_isinf=yes \
|
&& export ac_cv_func_isnan=yes ac_cv_func_isinf=yes \
|
||||||
./configure --disable-install-doc --enable-shared \
|
&& ./configure \
|
||||||
&& make -j"$(getconf _NPROCESSORS_ONLN)" \
|
--build="$gnuArch" \
|
||||||
|
--disable-install-doc \
|
||||||
|
--enable-shared \
|
||||||
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
\
|
\
|
||||||
&& runDeps="$( \
|
&& runDeps="$( \
|
||||||
|
|
|
@ -31,6 +31,7 @@ RUN set -ex \
|
||||||
&& buildDeps=' \
|
&& buildDeps=' \
|
||||||
autoconf \
|
autoconf \
|
||||||
bison \
|
bison \
|
||||||
|
dpkg-dev \
|
||||||
gcc \
|
gcc \
|
||||||
libbz2-dev \
|
libbz2-dev \
|
||||||
libgdbm-dev \
|
libgdbm-dev \
|
||||||
|
@ -67,7 +68,11 @@ RUN set -ex \
|
||||||
&& mv file.c.new file.c \
|
&& mv file.c.new file.c \
|
||||||
\
|
\
|
||||||
&& autoconf \
|
&& autoconf \
|
||||||
&& ./configure --disable-install-doc --enable-shared \
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
|
--disable-install-doc \
|
||||||
|
--enable-shared \
|
||||||
&& make -j "$(nproc)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
\
|
\
|
||||||
|
|
|
@ -18,6 +18,7 @@ RUN set -ex \
|
||||||
\
|
\
|
||||||
&& buildDeps=' \
|
&& buildDeps=' \
|
||||||
bison \
|
bison \
|
||||||
|
dpkg-dev \
|
||||||
libgdbm-dev \
|
libgdbm-dev \
|
||||||
ruby \
|
ruby \
|
||||||
' \
|
' \
|
||||||
|
@ -44,7 +45,11 @@ RUN set -ex \
|
||||||
&& mv file.c.new file.c \
|
&& mv file.c.new file.c \
|
||||||
\
|
\
|
||||||
&& autoconf \
|
&& autoconf \
|
||||||
&& ./configure --disable-install-doc --enable-shared \
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
|
--disable-install-doc \
|
||||||
|
--enable-shared \
|
||||||
&& make -j "$(nproc)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
\
|
\
|
||||||
|
|
Loading…
Reference in a new issue