Source-Changes-HG archive

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

[src/trunk]: src don't use dlopen() if NOPIC is defined



details:   https://anonhg.NetBSD.org/src/rev/8df950a1b60d
branches:  trunk
changeset: 495654:8df950a1b60d
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Aug 02 17:37:57 2000 +0000

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

diffstat:

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

diffs (33 lines):

diff -r b02ad1b9b86d -r 8df950a1b60d include/heimdal/config.h
--- a/include/heimdal/config.h  Wed Aug 02 17:04:23 2000 +0000
+++ b/include/heimdal/config.h  Wed Aug 02 17:37:57 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 b02ad1b9b86d -r 8df950a1b60d lib/libkadm5srv/Makefile
--- a/lib/libkadm5srv/Makefile  Wed Aug 02 17:04:23 2000 +0000
+++ b/lib/libkadm5srv/Makefile  Wed Aug 02 17:37:57 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2000/06/16 22:46:46 thorpej Exp $
+# $NetBSD: Makefile,v 1.3 2000/08/02 17:37:57 msaitoh Exp $
 DIST=          ${.CURDIR}/../../crypto/dist
 .PATH: ${DIST}/heimdal/lib/kadm5
 
@@ -62,6 +62,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