message: cmake tweaks, contd.
diff: @@ -59,13 +59,16 @@ elseif (${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64")
  elseif (CMAKE_CXX_COMPILER MATCHES "/em\\+\\+(-[a-zA-Z0-9.])?$")
  # Emscripten
  else()
  + if (UNIX)
  + set(ENOKI_ARCHFLAGS_LINK_LIBRARIES ${CMAKE_EXE_LINKER_FLAGS})
  + endif()
  try_run(
  ENOKI_ARCHFLAGS_RETVAL ENOKI_ARCHFLAGS_COMPILE_RESULT
  ${CMAKE_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}/resources/${ENOKI_ARCHFLAGS_FILE}
  COMPILE_OUTPUT_VARIABLE ENOKI_ARCHFLAGS_MSG
  RUN_OUTPUT_VARIABLE ENOKI_ARCHFLAGS
  - LINK_LIBRARIES ${CMAKE_EXE_LINKER_FLAGS}
  + LINK_LIBRARIES ${ENOKI_ARCHFLAGS_LINK_LIBRARIES}
  )
  if (NOT ${ENOKI_ARCHFLAGS_COMPILE_RESULT})
  