Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src don't use dlopen() if NOPIC is defined



details:   https://anonhg.NetBSD.org/src/rev/853156bfddd1
branches:  netbsd-1-5
changeset: 488851:853156bfddd1
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Aug 02 17:17:19 2000 +0000

description:
don't use dlopen() if NOPIC is defined

diffstat:

 include/heimdal/config.h |  2 ++
 lib/libkadm5srv/Makefile |  8 +++++++-
 2 files changed, 9 insertions(+), 1 deletions(-)

diffs (38 lines):

diff -r 7351381e7591 -r 853156bfddd1 include/heimdal/config.h
--- a/include/heimdal/config.h  Wed Aug 02 17:09:49 2000 +0000
+++ b/include/heimdal/config.h  Wed Aug 02 17:17:19 2000 +0000
@@ -107,7 +107,9 @@
 #define HAVE_DES_CBC_ENCRYPT 1
 
 /* Define if you have the dlopen function.  */
+#if !defined(NO_DLOPEN)
 #define HAVE_DLOPEN 1
+#endif
 
 /* Define if you have the dn_expand function.  */
 #define HAVE_DN_EXPAND 1
diff -r 7351381e7591 -r 853156bfddd1 lib/libkadm5srv/Makefile
--- a/lib/libkadm5srv/Makefile  Wed Aug 02 17:09:49 2000 +0000
+++ b/lib/libkadm5srv/Makefile  Wed Aug 02 17:17:19 2000 +0000
@@ -1,7 +1,9 @@
-# $NetBSD: Makefile,v 1.2 2000/06/16 22:46:46 thorpej Exp $
+# $NetBSD: Makefile,v 1.2.2.1 2000/08/02 17:17:19 msaitoh Exp $
 DIST=          ${.CURDIR}/../../crypto/dist
 .PATH: ${DIST}/heimdal/lib/kadm5
 
+.include <bsd.own.mk>
+
 WARNS?=  1
 MKLINT= no
 
@@ -62,6 +64,10 @@
         -I${DIST}/heimdal/lib/roken            \
         -DHAVE_CONFIG_H
 
+.if defined(NOPIC)
+CPPFLAGS+=-DNO_DLOPEN
+.endif
+
 $(SRCS:.c=.o): kadm5_err.h
 
 CLEANFILES = kadm5_err.h kadm5_err.c



Home | Main Index | Thread Index | Old Index