[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    [CMake] surround executable with flags
From:       oliver.zabel () egoproducts ! com
Date:       2016-08-24 11:31:56
Message-ID: OF812B2751.A5687251-ONC1258019.003E9790-C1258019.003F596A () egoproducts ! com
[Download RAW message or body]

Dies ist eine mehrteilige Nachricht im MIME-Format.

Dies ist eine mehrteilige Nachricht im MIME-Format.
--=_alternative 003F596AC1258019_=
Content-Type: text/plain; charset="US-ASCII"

Hi, 

i trying to migrate a cross-compiler project (ARM on Windows) from an IDE 
(Cypress PSoC Creator) to cmake. The toolchain is a standard gcc for arm. 
The IDE compiles the binary with

arm-none-eabi-gcc.exe -Wl,--start-group .....  -Wl,--end-group. I'm trying 
to reach the same in cmake, but since add_executable(target main.c) 
together with target_link_libraries() at least the main-file is outside 
the start / end-group. 
Is there a way to achive this? The problem is, that the code-size differs 
between the IDE build and cmake build and i need to know at least why. And 
since the group issue is the last thing, i need to get around it.

Thanks for help!
Best regards, 

Oliver
--=_alternative 003F596AC1258019_=
Content-Type: text/html; charset="US-ASCII"

<font size=1 face="Arial">Hi, </font>
<br>
<br><font size=1 face="Arial">i trying to migrate a cross-compiler project
(ARM on Windows) from an IDE (Cypress PSoC Creator) to cmake. The toolchain
is a standard gcc for arm. The IDE compiles the binary with</font>
<br>
<br><font size=1 face="Arial">arm-none-eabi-gcc.exe -Wl,--start-group .....
&nbsp;-Wl,--end-group. I'm trying to reach the same in cmake, but since
add_executable(target main.c) together with target_link_libraries() at
least the main-file is outside the start / end-group. </font>
<br><font size=1 face="Arial">Is there a way to achive this? The problem
is, that the code-size differs between the IDE build and cmake build and
i need to know at least why. And since the group issue is the last thing,
i need to get around it.</font>
<br>
<br><font size=1 face="Arial">Thanks for help!</font>
<br><font size=1 face="Arial">Best regards, </font>
<br>
<br><font size=1 face="Arial">Oliver</font>
--=_alternative 003F596AC1258019_=--


-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: \
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information \
on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at \
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic