Skip to content

Commit 7a9c8ff

Browse files
committed
tools/Dockerfile: Disable out-of-line helpers for atomics when building OpenSSL
When building OpenSSL on ARM, we get the following error: ``` /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/13/libgcc.a(lse-init.o): in function `init_have_lse_atomics': (.text.startup+0x10): undefined reference to `__getauxval' ``` We disable out-of-line helpers for atomic operations to avoid relying on __getauxval. Signed-off-by: Costin Lupu <[email protected]>
1 parent 1a4c8f3 commit 7a9c8ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ RUN mkdir /tmp/openssl_src
2525
RUN curl -L https://github.com/openssl/openssl/archive/${OPENSSL_VERSION}.zip -o /tmp/openssl_src/openssl.zip
2626
RUN unzip -q /tmp/openssl_src/openssl.zip -d /tmp/openssl_src
2727
RUN cd /tmp/openssl_src/openssl-${OPENSSL_VERSION} && \
28-
CC=musl-gcc CFLAGS=-fPIC ./Configure --prefix=/musl_openssl --openssldir=/musl_openssl no-shared no-engine no-afalgeng linux-$(uname -m) -DOPENSSL_NO_SECURE_MEMORY no-tests && \
28+
CC=musl-gcc CFLAGS=-fPIC CFLAGS=-mno-outline-atomics ./Configure --prefix=/musl_openssl --openssldir=/musl_openssl no-shared no-engine no-afalgeng linux-$(uname -m) -DOPENSSL_NO_SECURE_MEMORY no-tests && \
2929
make -j$(nproc) && \
3030
make install_sw
3131

0 commit comments

Comments
 (0)