mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
30aaff1192
FreeBSD. This method attempts to centralize all the necessary hacks or work arounds in one of two places in the tree (src/Makefile.inc1 and src/tools/build). We build a small compatibility library (libbuild.a) as well as selectively installing necessary include files. We then include this directory when building host binaries. This removes all the past release compatibilty hacks from various places in the tree. We still build on tip of stable and current. I will work with those that want to support more, although I anticipate it will just work. Many thanks to ru@, obrien@ and jhb@ for providing valuable input at various stage of implementation, as well as for working together to positively effect a change for the better.
26 lines
529 B
C
26 lines
529 B
C
/* $FreeBSD$ */
|
|
|
|
/*
|
|
* Compat shims for those programs that use this newer interface. These
|
|
* are more minimal than their libc bretheren as far as namespaces and
|
|
* such go because their use is so limited. Also, the libc versions
|
|
* have too many depends on libc build environment; it is more of a pain
|
|
* to set that up than to recreate them here shorn of all the other goo.
|
|
*/
|
|
|
|
extern const char *__progname;
|
|
|
|
void
|
|
setprogname(const char *p)
|
|
{
|
|
|
|
__progname = p;
|
|
}
|
|
|
|
const char *
|
|
getprogname(void)
|
|
{
|
|
|
|
return (__progname);
|
|
}
|