Author Topic: Codeblocks 13.12: Static library always stripping symbols during linking  (Read 2612 times)

khaled

  • Guest
On Ubuntu 14.04, I have created a bare-bone "Static Library" project from available CB 13.12 templates. When I build the project "Build Log" shows as below
Code
gcc -Wall -g  -c /home/me/devroom/TestLib/main.c -o obj/Debug/main.o
rm -f bin/Debug/libTestLib.a
ar -r [b]-s [/b]bin/Debug/libTestLib.a obj/Debug/main.o
ar: creating bin/Debug/libTestLib.a
Output file is bin/Debug/libTestLib.a with size 3.18 KB

Note that "ar" is using "-s" option by default. But I haven't enabled any stripping on anywhere of CB. I have triple checked both "Settings>Compiler>Compiler Settings>Compiler Flags" and "Build Options>Compiler Settings>Compiler Flags". Now please tell me how can I avoiding stripping during linking?
« Last Edit: July 02, 2015, 03:03:21 pm by khaled »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
"-s" does not mean stripping with "ar", just call "man ar" or see: http://linux.die.net/man/1/ar