Hi,

When compiling on IA32 I get a nasm option -mstackrealign which
results in 'nasm: error: unrecognised option `-m'.

I believe that the compile option -mstackrealign is meant
to be used only for C, so I propose the following patch:

diff -rauN flac-1.3.4/CMakeLists.txt 
flac-1.3.4-no-mstackrealign-for-nasm-patch/CMakeLists.txt
--- flac-1.3.4/CMakeLists.txt   2022-02-14 06:21:14.011609811 +0100
+++ flac-1.3.4-no-mstackrealign-for-nasm-patch/CMakeLists.txt   2022-03-10 
09:54:48.719704370 +0100
@@ -97,7 +97,7 @@
 endif()

 if(CMAKE_SYSTEM_PROCESSOR STREQUAL "i686" AND HAVE_STACKREALIGN_FLAG)
-    add_compile_options(-mstackrealign)
+    add_compile_options($<$<COMPILE_LANGUAGE:C>:-mstackrealign>)
 endif()

 include_directories("include")

Cheers

Andreas

--
Andreas Baumann
Trottenstrasse 20
CH-8037 Zuerich
Telefon: +41(0)76/373 01 29
E-mail: m...@andreasbaumann.cc
Homepage: www.andreasbaumann.cc

Attachment: signature.asc
Description: PGP signature

_______________________________________________
flac-dev mailing list
flac-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/flac-dev

Reply via email to