Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/rump_allserver On glibc systems, issue a warning if ...
details: https://anonhg.NetBSD.org/src/rev/c4d885bbd8bd
branches: trunk
changeset: 327933:c4d885bbd8bd
user: pooka <pooka%NetBSD.org@localhost>
date: Fri Mar 21 16:26:30 2014 +0000
description:
On glibc systems, issue a warning if LD_DYNAMIC_WEAK is not
diffstat:
usr.bin/rump_allserver/rump_allserver.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r 320772a8473d -r c4d885bbd8bd usr.bin/rump_allserver/rump_allserver.c
--- a/usr.bin/rump_allserver/rump_allserver.c Fri Mar 21 16:03:35 2014 +0000
+++ b/usr.bin/rump_allserver/rump_allserver.c Fri Mar 21 16:26:30 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rump_allserver.c,v 1.35 2014/01/16 02:20:50 pooka Exp $ */
+/* $NetBSD: rump_allserver.c,v 1.36 2014/03/21 16:26:30 pooka Exp $ */
/*-
* Copyright (c) 2010, 2011 Antti Kantee. All Rights Reserved.
@@ -28,7 +28,7 @@
#include <rump/rumpuser_port.h>
#ifndef lint
-__RCSID("$NetBSD: rump_allserver.c,v 1.35 2014/01/16 02:20:50 pooka Exp $");
+__RCSID("$NetBSD: rump_allserver.c,v 1.36 2014/03/21 16:26:30 pooka Exp $");
#endif /* !lint */
#include <sys/types.h>
@@ -151,6 +151,14 @@
unsigned nmods = 0, curmod = 0, nlibs = 0, curlib = 0, libidx;
unsigned liblast = -1; /* XXXgcc */
+#ifdef __GLIBC__
+ char *p_weak;
+
+ if ((p_weak = getenv("LD_DYNAMIC_WEAK")) == NULL || *p_weak != '1')
+ fprintf(stderr, "WARNING: LD_DYNAMIC_WEAK is not set to "
+ "\"1\" in the environment\n");
+#endif
+
#ifdef PLATFORM_HAS_SETGETPROGNAME
setprogname(argv[0]);
#endif
Home |
Main Index |
Thread Index |
Old Index