srecord fails to build due to libtool embed old gcc version
When buidling srecord version 1.64, it does not link when Alpine 3.13.0 is used.
The following Dockerfile...
FROM amd64/alpine:3.13.0
RUN apk add --update --no-cache \
make \
boost-dev \
libgcrypt-dev \
libtool \
g++
RUN wget https://vorboss.dl.sourceforge.net/project/srecord/srecord/1.64/srecord-1.64.tar.gz \
&& tar -xzf /srecord-1.64.tar.gz \
&& cd /srecord-1.64/ && ./configure && make all-bin
... generates the following error:
g++: error: /usr/lib/gcc/x86_64-alpine-linux-musl/10.2.0/../../../../lib/crti.o: No such file or directory
g++: error: /usr/lib/gcc/x86_64-alpine-linux-musl/10.2.0/crtbeginS.o: No such file or directory
g++: error: /usr/lib/gcc/x86_64-alpine-linux-musl/10.2.0/crtendS.o: No such file or directory
g++: error: /usr/lib/gcc/x86_64-alpine-linux-musl/10.2.0/../../../../lib/crtn.o: No such file or directory
make: *** [Makefile:3866: srecord/libsrecord.la] Error 1
Note: gcc/g++ version 10.2.1_prel is installed, but when linking g++ tries to locate object files for version 10.2.0 of gcc.