[Fwd: Re: [CMake] Creating static executables]

2007-06-12 Thread Bill Hoffman
--- Begin Message --- Thanks, that fixed the problem. Regards, Ajay On Tuesday 12 June 2007 10:23, you wrote: > Ajay Divekar wrote: > > Bill, > > Before I give out the actual command here is the CmakeList.txt file that > > I am using to generate the makefile. This is FreeBSD 5.5 > > > > LINK_D

Re: [CMake] Creating static executables

2007-06-12 Thread Bill Hoffman
Ajay Divekar wrote: Bill, Before I give out the actual command here is the CmakeList.txt file that I am using to generate the makefile. This is FreeBSD 5.5 LINK_DIRECTORIES ($ENV{PP_ROOTDIR}/lib .) ADD_EXECUTABLE (IANd IANd.c IANServer.c IANProcess.cc ) SET_TARGET_PROPERTIES (IANd PROPERTIES L

Re: [CMake] Creating static executables

2007-06-11 Thread Bill Hoffman
Ajay Divekar wrote: I tried the following in my CMakeLists.txt file. SET (CMAKE_EXE_LINK_DYNAMIC_C_FLAGS "-Wl,-Bstatic") SET_TARGET_PROPERTIES ( PROPERTIES LINK_FLAGS "-L/usr/local/lib/ -L/usr/lib") I have checked that libc.a and libm.a exists in the /usr/lib directory. I am currently u

Re: [CMake] Creating static executables

2007-06-11 Thread Ajay Divekar
I tried the following in my CMakeLists.txt file. SET (CMAKE_EXE_LINK_DYNAMIC_C_FLAGS "-Wl,-Bstatic") SET_TARGET_PROPERTIES ( PROPERTIES LINK_FLAGS "-L/usr/local/lib/ -L/usr/lib") I have checked that libc.a and libm.a exists in the /usr/lib directory. I am currently using FreeBSD5.5. When I

Re: [CMake] Creating static executables

2007-06-10 Thread Bill Hoffman
Alan W. Irwin wrote: On 2007-06-09 10:22+0400 Nikita V. Borodikhin wrote: I frankly don't understand why that failed to work. Completely static executables are possible with cmake. I know this because I made one several months ago as a temporary experiment. They _were_ possible but on cmak

Re: [CMake] Creating static executables

2007-06-09 Thread Alan W. Irwin
On 2007-06-09 10:22+0400 Nikita V. Borodikhin wrote: I frankly don't understand why that failed to work. Completely static executables are possible with cmake. I know this because I made one several months ago as a temporary experiment. They _were_ possible but on cmake >= 2.4.4 they are no l

Re: [CMake] Creating static executables

2007-06-08 Thread Nikita V. Borodikhin
Alan W. Irwin wrote: > On 2007-06-08 15:37-0400 Ajay Divekar wrote: > >> I tried your suggestion by setting >> >> SET_TARGET_PROPERTIES (bbb PROPERTIES LINK_FLAGS "-static -lc -lm >> -L/usr/local/lib/") >> >> The result is the same i.e. the executable generated is not completely >> static. >> Stil

Re: [CMake] Creating static executables

2007-06-08 Thread Alan W. Irwin
On 2007-06-08 15:37-0400 Ajay Divekar wrote: I tried your suggestion by setting SET_TARGET_PROPERTIES (bbb PROPERTIES LINK_FLAGS "-static -lc -lm -L/usr/local/lib/") The result is the same i.e. the executable generated is not completely static. Still has shared library dependencies. The output

Re: [CMake] Creating static executables

2007-06-08 Thread Eric Noulard
2007/6/8, Ajay Divekar <[EMAIL PROTECTED]>: I tried your suggestion by setting SET_TARGET_PROPERTIES (bbb PROPERTIES LINK_FLAGS "-static -lc -lm -L/usr/local/lib/") The result is the same i.e. the executable generated is not completely static. Still has shared library dependencies. The output g

Re: [CMake] Creating static executables

2007-06-08 Thread Ajay Divekar
I tried your suggestion by setting SET_TARGET_PROPERTIES (bbb PROPERTIES LINK_FLAGS "-static -lc -lm -L/usr/local/lib/") The result is the same i.e. the executable generated is not completely static. Still has shared library dependencies. The output generated after doing ldd bbb is li

Re: [CMake] Creating static executables

2007-06-08 Thread Alan W. Irwin
On 2007-06-08 14:37-0400 Ajay Divekar wrote: I am trying to create a static executable and for that I have already defined using ADD_Definitions the -static option. But after it is build and when I do ldd bbb (where bbb is the executable that was just generated) The output of the above

[CMake] Creating static executables

2007-06-08 Thread Ajay Divekar
I am trying to create a static executable and for that I have already defined using ADD_Definitions the -static option. But after it is build and when I do ldd bbb (where bbb is the executable that was just generated) The output of the above command is libz.so.3 => /lib/libz.so.