File tree Expand file tree Collapse file tree 3 files changed +31
-3
lines changed Expand file tree Collapse file tree 3 files changed +31
-3
lines changed Original file line number Diff line number Diff line change @@ -226,13 +226,17 @@ RUN mv /opt/osxcross/target/bin/<%= target %>-strip /opt/osxcross/target/bin/<%=
226226RUN echo "export PATH=\$DEVTOOLSET_ROOTPATH/usr/bin:\$PATH " > > /etc/rubybashrc
227227
228228# Add prefixed versions of compiler tools
229- 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
229+ 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
230230
231231# Use builtin functions of newer gcc to avoid linker issues on Musl based Linux
232232# TODO: remove in v1.6.0 once musl builds have been out for full minor release cycle, see 864be5b2
233233COPY build/math_h.patch /root/
234234RUN cd /usr/include/ && \
235235 patch -p1 < /root/math_h.patch
236+
237+ # Update pkg-config because the distro ships 0.27.1 which is old and has bugs and performance issues.
238+ COPY build/mk_pkg_config.sh /root/
239+ RUN /root/mk_pkg_config.sh
236240<% end %>
237241
238242<% if platform =~ /arm64-darwin/ %>
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -o errexit
4+ set -o pipefail
5+ set -x
6+
7+ # sha256 from https://lists.freedesktop.org/archives/pkg-config/2017-March/001084.html
8+ TARFILE=pkg-config-0.29.2.tar.gz
9+ DIR=pkg-config-0.29.2
10+ CHECKSUM=6fc69c01688c9458a57eb9a1664c9aba372ccda420a02bf4429fe610e7e7d591
11+
12+ cd /tmp
13+
14+ wget https://pkgconfig.freedesktop.org/releases/${TARFILE}
15+ sha256sum ${TARFILE} | grep " ${CHECKSUM} "
16+
17+ tar -xzvf ${TARFILE}
18+ cd $DIR
19+
20+ ./configure --prefix=/usr/local
21+ make install
22+
23+ pkg-config --version
24+ echo " OK"
Original file line number Diff line number Diff line change 11module RakeCompilerDock
2- VERSION = "1.5.0 "
3- IMAGE_VERSION = "1.5.0 "
2+ VERSION = "1.5.1.dev "
3+ IMAGE_VERSION = "1.5.1.dev "
44end
You can’t perform that action at this time.
0 commit comments