Re: [CMake] undefined reference to `_exit'

2019-02-01 Thread frodak17
If I follow you correctly you are trying to replace the startup files that are normally used with your own versions. You don't mention what the new library is that you are using to replace the startup files. The standard startup files provide _init and _fini. You are also missing _exit which I th

Re: [CMake] undefined reference to `_exit'

2019-02-01 Thread Kyle Edwards via CMake
Hex, Can you see what else is in /opt/arm-none-eabi/lib/thumb/v7- ar/fpv3/hard (the same directory as libc.a)? There might be another system library that contains the _exit() implementation that isn't being linked due to your use of the -nostartfiles flag. Kyle On Fri, 2019-02-01 at 22:15 +, he

Re: [CMake] FindOpenSSL.cmake

2019-02-01 Thread Kyle Edwards via CMake
Andrew, FindOpenSSL provides an "OPENSSL_ROOT_DIR" variable which allows you to specify the root directory of your installation (assuming a traditional layout within that directory.) Hopefully this will do what you need. Good luck! Kyle On Fri, 2019-02-01 at 16:18 -0500, Andrew Bell wrote: > I have

[CMake] undefined reference to `_exit'

2019-02-01 Thread hex
hello, I am trying to include a static library that contains the startup code for ARM processor to my  CMake project for cross compilation. I included the linker script and added it to the executable. Flags and include files are properly set in the CMake build output. The path to the library

[CMake] FindOpenSSL.cmake

2019-02-01 Thread Andrew Bell
I have a system-provided SSL and I have a newer one that I have installed via a packaging system. In my build system I have: find_package(OPENSSL 1.1) . This properly finds the version 1.1 header files for openSSL, but it finds the incompatible system libraries, which are older than version 1.1.

Re: [CMake] Checking Variables in a tool-chain file

2019-02-01 Thread frodak17
Be aware that CMAKE_TRY_COMPILE_PLATFORM_VARIABLES only works with the try_compile() command source file signature. Unfortunately it doesn't work with try_compile() whole projects signature. The section on Other Beh