Fix build break on gcc13 11/294311/1 tizen_dev accepted/tizen/unified/dev/20230726.115427
authorTae-Young Chung <ty83.chung@samsung.com>
Fri, 16 Jun 2023 03:46:32 +0000 (12:46 +0900)
committerTae-Young Chung <ty83.chung@samsung.com>
Fri, 16 Jun 2023 03:49:26 +0000 (12:49 +0900)
On gcc12, followling errors occur.
```
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
``
To degrade the error to a warning, add fortran option.
Refer to https://gcc.gnu.org/onlinedocs/gfortran/Fortran-Dialect-Options.html#index-fallow-argument-mismatch

Change-Id: I2eaf2aa257f0a6e5b925a1b5e3fed124a53e0402
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
packaging/lapack.spec

index e31f933..d29d818 100644 (file)
@@ -117,6 +117,8 @@ linear algebra.
 %setup -q
 
 %build
+export FFLAGS="$FFLAGS -fallow-argument-mismatch"
+
 mkdir -p build
 cd build