[CMake] Suppressing -rdynamic

Filip Brcic brcha at users.sourceforge.net
Sat Oct 6 10:57:06 EDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Дана субота 06 октобар 2007, Gonzalo Garramuño је написао(ла):
> > Therefore, you have to override CMAKE_SHARED_LIBRARY_LINK_C_FLAGS and set
> > it to blank. Something like:
> >
> > SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
> >
> > or something like that.
>
> Did you actually try it?  Suppressing the variable does nothing.
> Even replacing Linux.cmake with my own does nothing.

It works for me. Take a look at the attacked "program".

Here is my version of CMake:
[brcha at sirius ~]$ rpm -q cmake
cmake-2.4.6-4.fc7

and here is the output of the verbose build:
[brcha at sirius build]$ make VERBOSE=1
/usr/bin/cmake -H/Users/brcha/tmp/helloWorld -B/Users/brcha/tmp/helloWorld/build --check-build-system 
CMakeFiles/Makefile.cmake 0
Clearing dependencies in "CMakeFiles/helloWorld.dir/depend.make".
Clearing dependencies in "CMakeFiles/helloWorld.dir/depend.internal".
/usr/bin/cmake -E 
cmake_progress_start /Users/brcha/tmp/helloWorld/build/CMakeFiles 1
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/Users/brcha/tmp/helloWorld/build'
make -f CMakeFiles/helloWorld.dir/build.make CMakeFiles/helloWorld.dir/depend
make[2]: Entering directory `/Users/brcha/tmp/helloWorld/build'
Scanning dependencies of target helloWorld
cd /Users/brcha/tmp/helloWorld/build && /usr/bin/cmake -E cmake_depends "Unix 
Makefiles" /Users/brcha/tmp/helloWorld /Users/brcha/tmp/helloWorld /Users/brcha/tmp/helloWorld/build /Users/brcha/tmp/helloWorld/build /Users/brcha/tmp/helloWorld/build/CMakeFiles/helloWorld.dir/DependInfo.cmake
make[2]: Leaving directory `/Users/brcha/tmp/helloWorld/build'
make -f CMakeFiles/helloWorld.dir/build.make CMakeFiles/helloWorld.dir/build
make[2]: Entering directory `/Users/brcha/tmp/helloWorld/build'
/usr/bin/cmake -E 
cmake_progress_report /Users/brcha/tmp/helloWorld/build/CMakeFiles 1
[100%] Building C object CMakeFiles/helloWorld.dir/helloWorld.o
/usr/lib64/ccache/gcc   -o 
CMakeFiles/helloWorld.dir/helloWorld.o   -c /Users/brcha/tmp/helloWorld/helloWorld.c
Linking C executable helloWorld
/usr/bin/cmake -P CMakeFiles/helloWorld.dir/cmake_clean_target.cmake
/usr/lib64/ccache/gcc     -fPIC "CMakeFiles/helloWorld.dir/helloWorld.o"   -o 
helloWorld
make[2]: Leaving directory `/Users/brcha/tmp/helloWorld/build'
/usr/bin/cmake -E 
cmake_progress_report /Users/brcha/tmp/helloWorld/build/CMakeFiles  1
[100%] Built target helloWorld
make[1]: Leaving directory `/Users/brcha/tmp/helloWorld/build'
/usr/bin/cmake -E 
cmake_progress_start /Users/brcha/tmp/helloWorld/build/CMakeFiles 0


- -- 
Filip Brcic <brcha at users.sourceforge.net>
WWWeb: http://purl.org/NET/brcha/home/
Jabber: brcha at kdetalk.net
ICQ# 40994923
Yahoo! brcha
MSN: brcha at users.sourceforge.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFHB6JHeugpoxYs6H8RAmmfAJ9txffofxr6P2JDZo0BAgdVKZu6oQCgkMKo
tFUi7uJt6A/qTPh/AaY5NQY=
=qIJ2
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: helloWorld.tar.bz2
Type: application/x-tbz
Size: 383 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20071006/f63415a7/helloWorld.tar.bin


More information about the CMake mailing list