[CMake] building static binaries

2010-11-02 Thread Szilárd Páll
Hi, I've been trying to implement a feature which would enable building static binaries with cmake, but I've got completely stuck, I hope someone can hint me what's the best way to do this. What I've done is a 2 stage solution for making static binaries: 1) Telling cmake to prefer picking up ".a

Re: [CMake] building static binaries

2010-11-03 Thread Michael Hertling
On 11/02/2010 10:54 PM, Szilárd Páll wrote: > Hi, > > I've been trying to implement a feature which would enable building > static binaries with cmake, but I've got completely stuck, I hope > someone can hint me what's the best way to do this. > > What I've done is a 2 stage solution for making s

Re: [CMake] building static binaries

2010-11-03 Thread Szilárd Páll
Hi, First of all, I'd be grateful for a reply to the 2nd of my question. Can anyone confirm that LINK_SEARCH_END_STATIC on Linux + gcc is buggy? @Michael: Thanks for the link, I've actually seen that thread, but I was quite disappointed by the conclusions so I asked with the hope that the opinio

Re: [CMake] building static binaries

2010-11-04 Thread Marcel Loose
On Wed, 2010-11-03 at 17:57 +0100, Michael Hertling wrote: > On 11/02/2010 10:54 PM, Szilárd Páll wrote: > > Hi, > > > > I've been trying to implement a feature which would enable building > > static binaries with cmake, but I've got completely stuck, I hope > > someone can hint me what's the best

Re: [CMake] building static binaries

2010-11-11 Thread Michael Hertling
On 11/03/2010 10:36 PM, Szilárd Páll wrote: > Hi, > > First of all, I'd be grateful for a reply to the 2nd of my question. > Can anyone confirm that LINK_SEARCH_END_STATIC on Linux + gcc is > buggy? Indeed, I can confirm that enabling the LINK_SEARCH_END_STATIC target property without further mea