Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Dockerfile.mri.erb
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,17 @@ RUN mv /opt/osxcross/target/bin/<%= target %>-strip /opt/osxcross/target/bin/<%=
RUN echo "export PATH=\$DEVTOOLSET_ROOTPATH/usr/bin:\$PATH" >> /etc/rubybashrc

# Add prefixed versions of compiler tools
RUN for f in addr2line gcc gcov-tool ranlib ar dwp gcc-ranlib nm readelf as elfedit gcc-ar gprof objcopy size c++filt g++ gcov ld objdump strings cpp gcc-nm pkg-config strip ; do ln -sf $DEVTOOLSET_ROOTPATH/usr/bin/$f $DEVTOOLSET_ROOTPATH/usr/bin/<%= target %>-$f ; done
RUN for f in addr2line gcc gcov-tool ranlib ar dwp gcc-ranlib nm readelf as elfedit gcc-ar gprof objcopy size c++filt g++ gcov ld objdump strings cpp gcc-nm strip ; do ln -sf $DEVTOOLSET_ROOTPATH/usr/bin/$f $DEVTOOLSET_ROOTPATH/usr/bin/<%= target %>-$f ; done

# Use builtin functions of newer gcc to avoid linker issues on Musl based Linux
# TODO: remove in v1.6.0 once musl builds have been out for full minor release cycle, see 864be5b2
COPY build/math_h.patch /root/
RUN cd /usr/include/ && \
patch -p1 < /root/math_h.patch

# Update pkg-config because the distro ships 0.27.1 which is old and has bugs and performance issues.
COPY build/mk_pkg_config.sh /root/
RUN /root/mk_pkg_config.sh
<% end %>

<% if platform =~ /arm64-darwin/ %>
Expand Down
24 changes: 24 additions & 0 deletions build/mk_pkg_config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#! /usr/bin/env bash

set -o errexit
set -o pipefail
set -x

# sha256 from https://lists.freedesktop.org/archives/pkg-config/2017-March/001084.html
TARFILE=pkg-config-0.29.2.tar.gz
DIR=pkg-config-0.29.2
CHECKSUM=6fc69c01688c9458a57eb9a1664c9aba372ccda420a02bf4429fe610e7e7d591

cd /tmp

wget https://pkgconfig.freedesktop.org/releases/${TARFILE}
sha256sum ${TARFILE} | grep "${CHECKSUM}"

tar -xzvf ${TARFILE}
cd $DIR

./configure --prefix=/usr/local
make install

pkg-config --version
echo "OK"
4 changes: 2 additions & 2 deletions lib/rake_compiler_dock/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module RakeCompilerDock
VERSION = "1.5.0"
IMAGE_VERSION = "1.5.0"
VERSION = "1.5.1.dev"
IMAGE_VERSION = "1.5.1.dev"
end