Fix delocate build rules with make
$CMAKE_ASM_FLAGS does not do variable expansion in CMake, only
${CMAKE_ASM_FLAGS}. As a result, we got the string "$CMAKE_ASM_FLAGS"
into the Makefile. That seems to then get interpreted as
${C}MAKE_ASM_FLAGS. I'm not sure why things worked in Ninja, but I
suspect there is some underlying escaping bug in CMake somewhere.
Change-Id: Ibc365282a449ea48f8bcfc194faf62c93e29b6d6
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/63805
Commit-Queue: Adam Langley <agl@google.com>
Auto-Submit: David Benjamin <davidben@google.com>
Reviewed-by: Adam Langley <agl@google.com>
diff --git a/crypto/fipsmodule/CMakeLists.txt b/crypto/fipsmodule/CMakeLists.txt
index 9d36999..9ab3da3 100644
--- a/crypto/fipsmodule/CMakeLists.txt
+++ b/crypto/fipsmodule/CMakeLists.txt
@@ -83,7 +83,7 @@
-a $<TARGET_FILE:bcm_c_generated_asm>
-o bcm-delocated.S
-cc ${CMAKE_ASM_COMPILER}
- -cc-flags "${TARGET} $CMAKE_ASM_FLAGS"
+ -cc-flags "${TARGET} ${CMAKE_ASM_FLAGS}"
${PROJECT_SOURCE_DIR}/include/openssl/arm_arch.h
${PROJECT_SOURCE_DIR}/include/openssl/asm_base.h
${PROJECT_SOURCE_DIR}/include/openssl/target.h