wheels: Disable optimizations for liberasurecode

Previously we could build with, for example, AVX optimizations which
would not necessarily be available on all the machines we'd hope to be
able to use wheels.

Note that ISA-L has some fancy multi-binary-dispatchers thing going on
that should do the right thing at run-time, but liberasurecode doesn't
know how to do that.

Change-Id: Iadfe6e7c7820761040d0da278636350fc0b50f9d
This commit is contained in:
Tim Burke 2024-10-24 10:12:30 -07:00
parent f58bd5313c
commit 9c1f5470a6

View File

@ -58,7 +58,7 @@ ADD https://github.com/openstack/liberasurecode/archive/${LIBERASURECODE_TAG}.ta
RUN tar -C /opt/src -x -f /opt/src/liberasurecode.tar.gz -z
RUN cd /opt/src/liberasurecode*/ && \
./autogen.sh && \
CFLAGS="-DLIBERASURECODE_SO_SUFFIX='"'"'"${SO_SUFFIX}"'"'"'" ./configure --prefix=/usr && \
CFLAGS="-DLIBERASURECODE_SO_SUFFIX='"'"'"${SO_SUFFIX}"'"'"'" ./configure --prefix=/usr --disable-mmi && \
make && \
make install