From 00020640fc271aae2c7b1d8c5ae92fbb7efe328d Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 12 Dec 2002 03:10:14 +0000 Subject: Add in a stub libnsl library to make stupid configure scripts (i.e. openssh) do the right thing when used with uClibc's gcc wrapper (which does not currently prevent system libraries from leaking into the link). -Erik --- libnsl/nsl.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 libnsl/nsl.c (limited to 'libnsl/nsl.c') diff --git a/libnsl/nsl.c b/libnsl/nsl.c new file mode 100644 index 000000000..318d28d8a --- /dev/null +++ b/libnsl/nsl.c @@ -0,0 +1,30 @@ +/* vi: set sw=4 ts=4: */ +/* + * libnsl for uClibc + * + * Copyright (C) 2002 by Erik Andersen + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU Library General Public License as published by + * the Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License + * for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + +#include + +void __stub2(void) +{ + return; +} +link_warning (__stub2, "the `libnsl' library is a stub. Do you really need it?") + -- cgit v1.2.3