Re: [PATCH 0/2] Modernize header checks

2013-06-01 Thread Russ Allbery
Peter Rosin p...@lysator.liu.se writes: On 2013-06-01 00:06, Russ Allbery wrote: Autoconf doesn't work with MSVC directly so far as I know. All of the packages I have that are ported to MSVC have a separate hand-written config.h that's used for MSVC builds, and in that file one simply

Re: [PATCH 0/2] Modernize header checks

2013-06-01 Thread Peter Rosin
On 2013-05-31 23:46, Eric Blake wrote: On 05/31/2013 03:26 PM, Peter Rosin wrote: On 2013-05-31 19:19, Eric Blake wrote: That said, would it hurt if autoconf just unconditionally defined the macros that were previously conditionally defined by a probe, so that code that was relying on

Re: [PATCH 0/2] Modernize header checks

2013-06-01 Thread Russ Allbery
Peter Rosin p...@lysator.liu.se writes: On 2013-06-01 08:09, Russ Allbery wrote: Peter Rosin writes: On 2013-06-01 00:06, Russ Allbery wrote: Autoconf doesn't work with MSVC directly so far as I know. All of the packages I have that are ported to MSVC have a separate hand-written config.h

Re: Help with static linking

2013-06-01 Thread Kip Warner
On Fri, 2013-05-31 at 08:31 -0500, Robert Boehne wrote: Statically linking libc is a recipe for disaster, so either read and understand why, or just take my word for it. I'm in agreement and standard libraries are something I'm fine with not statically linking against, although it's not

Re: Help with static linking

2013-06-01 Thread Kip Warner
On Fri, 2013-05-31 at 14:57 +0100, Diego Elio Pettenò wrote: What you're thinking of is -Wl,-Bstatic and -Wl,-Bdynamic — for the GNU linker at least, but this is not portable. Seriously, it sounds to me like something else is wrong, you should never have the need to statically link stuff

Re: Help with static linking

2013-06-01 Thread Kip Warner
On Fri, 2013-05-31 at 07:37 -0700, Dan Kegel wrote: You have PKG_CHECK_MODULES([libzzip], [zziplib], [have_zzip=yes], [have_zzip=no]) Have you seen https://bugs.freedesktop.org/show_bug.cgi?id=19541 ? Maybe try PKG_CHECK_MODULES_STATIC or PKG_CONFIG=pkg-config --static Hey Dan. I've

Re: Help with static linking

2013-06-01 Thread Dan Kegel
On Sat, Jun 1, 2013 at 4:42 PM, Kip Warner k...@thevertigo.com wrote: $ pkg-config --libs zziplib -Wl,-Bsymbolic-functions -Wl,-z,relro -lzzip -lz $ pkg-config --static --libs zziplib -Wl,-Bsymbolic-functions -Wl,-z,relro -lzzip -lz Aw, foo. I was under the

Re: Help with static linking

2013-06-01 Thread Kip Warner
On Sat, 2013-06-01 at 17:17 -0700, Dan Kegel wrote: Aw, foo. I was under the misapprehention that --static would cause pkgconfig to reference the .a files. I've clearly been spending too much time in cmake-land. No worries ;) I don't suppose you've tried passing absolute paths to the .a

Re: Help with static linking

2013-06-01 Thread Mike Frysinger
On Saturday 01 June 2013 19:27:46 Kip Warner wrote: On Fri, 2013-05-31 at 08:31 -0500, Robert Boehne wrote: I don't quite understand why you think you need the rest linked statically, Libraries like the following may not be present on the end user's system already: be aware that what

Re: Help with static linking

2013-06-01 Thread Kip Warner
On Sat, 2013-06-01 at 23:14 -0400, Mike Frysinger wrote: be aware that what ever version of glibc gcc you use to build, the end user cannot have a version older than that or it'll fail to start Do you mean in the case of dynamic linking? If so, that's awful. But strange because I've seen