Skip to content

Commit

Permalink
add '-fno-ident' to CFLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip committed Aug 9, 2024
1 parent 193a199 commit 547f146
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions tools/build_openblas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ OPENBLAS_VERSION=$(git describe --tags --abbrev=8)
patch -p1 < ../patches-windows/openblas-make-libs.patch

# Build OpenBLAS
CFLAGS="$CFLAGS -fvisibility=protected -fno-ident" \
make BINARY=$build_bits DYNAMIC_ARCH=1 USE_THREAD=1 USE_OPENMP=0 \
NUM_THREADS=24 NO_WARMUP=1 NO_AFFINITY=1 CONSISTENT_FPCSR=1 \
BUILD_LAPACK_DEPRECATED=1 TARGET=PRESCOTT BUFFERSIZE=20\
Expand Down
4 changes: 2 additions & 2 deletions tools/build_steps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,13 @@ function do_build_lib {
patch_source
echo start building
if [ -v dynamic_list ]; then
CFLAGS="$CFLAGS -fvisibility=protected -Wno-uninitialized" \
CFLAGS="$CFLAGS -fvisibility=protected -Wno-uninitialized -fno-ident" \
make BUFFERSIZE=20 DYNAMIC_ARCH=1 \
USE_OPENMP=0 NUM_THREADS=64 \
DYNAMIC_LIST="$dynamic_list" \
BINARY=$bitness $interface_flags $target_flags shared 2>&1 1>/dev/null
else
CFLAGS="$CFLAGS -fvisibility=protected -Wno-uninitialized" \
CFLAGS="$CFLAGS -fvisibility=protected -Wno-uninitialized -fno-ident" \
make BUFFERSIZE=20 DYNAMIC_ARCH=1 \
USE_OPENMP=0 NUM_THREADS=64 \
BINARY=$bitness $interface_flags $target_flags shared 2>&1 1>/dev/null
Expand Down

0 comments on commit 547f146

Please sign in to comment.