This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Add libidn/idn-stub-static.c
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Roland McGrath <roland at hack dot frob dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Tue, 9 Oct 2012 15:01:03 -0700
- Subject: Re: [PATCH] Add libidn/idn-stub-static.c
- References: <20120910134642.GA23612@intel.com><20121009211119.341442C09C@topped-with-meat.com>
On Tue, Oct 9, 2012 at 2:11 PM, Roland McGrath <roland@hack.frob.com> wrote:
> Why is that needed? A static build still has libdl.a and so forth.
> It should just fail to find any DSO at runtime.
idn-stub.c has
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include <dlfcn.h>
#include <gnu/lib-names.h>
But lib-names.h doesn't define LIBCIDN_SO since DSO
is disabled. My patch provides a dummy one without
loading DSO.
--
H.J.