Added binutils replacement

This commit is contained in:
DataHoarder 2021-10-28 01:36:08 +02:00
parent 00dc22eb0e
commit ad2a2cfe69
3 changed files with 12 additions and 2 deletions

View file

@ -7,7 +7,7 @@ RUN yum install -y make autogen autoconf automake libtool git rpm-build yum-util
RUN groupadd -g 1000 mockbuild && adduser -u 1000 -g 1000 -m mockbuild
ARG GCC_VERSION=4.4.2-7.fc12
#RUN curl "https://vault.centos.org/6.0/os/Source/Packages/gcc-4.4.4-13.el6.src.rpm" --location --output gcc-4.4.4-13.el6.src.rpm
COPY "gcc-${GCC_VERSION}.src.rpm" "gcc-${GCC_VERSION}.src.rpm"
RUN rpm -ivh "gcc-${GCC_VERSION}.src.rpm" && \
sed -i 's/%global include_gappletviewer 1/%global include_gappletviewer 0/g' ~/rpmbuild/SPECS/gcc.spec && \
@ -21,6 +21,11 @@ RUN rpmbuild -bs ~/rpmbuild/SPECS/gcc.spec
RUN yum-builddep --nogpgcheck -y "/root/rpmbuild/SRPMS/gcc-"*.src.rpm
RUN rpmbuild --rebuild "/root/rpmbuild/SRPMS/gcc-"*.src.rpm
ARG BINUTILS_VERSION=2.19.51.0.14-34.fc12
COPY "binutils-${BINUTILS_VERSION}.src.rpm" "binutils-${BINUTILS_VERSION}.src.rpm"
RUN yum-builddep --nogpgcheck -y "binutils-${BINUTILS_VERSION}.src.rpm"
RUN rpmbuild --rebuild "binutils-${BINUTILS_VERSION}.src.rpm"
RUN yum remove -y gcc libtool
RUN rpm --oldpackage -Uvh /root/rpmbuild/RPMS/x86_64/*.rpm
@ -36,6 +41,8 @@ RUN yum-builddep --nogpgcheck -y "/root/rpmbuild/SRPMS/libtool-"*.src.rpm
RUN rpmbuild --rebuild "/root/rpmbuild/SRPMS/libtool-"*.src.rpm
RUN rpm --oldpackage -Uvh "/root/rpmbuild/RPMS/x86_64/libtool-"*.rpm
RUN ls -lah /root/rpmbuild/RPMS/x86_64/
RUN rm -R "libtool-${LIBTOOL_VERSION}.src.rpm" "gcc-${GCC_VERSION}.src.rpm" ~/rpmbuild
USER mockbuild

Binary file not shown.

View file

@ -12,7 +12,7 @@ fi
./autogen.sh
CFLAGS="-march=x86-64 -mtune=generic" CPPFLAGS="-DPLATFORM_NUM_FOCALPOINTS=6" ./configure --enable-shared --disable-static
CFLAGS="-march=x86-64" CPPFLAGS="-DPLATFORM_NUM_FOCALPOINTS=6" ./configure --enable-shared --disable-static
make