1 ?RCS: $Id: d_dlopen.U,v 3.0.1.2 1995/07/25 13:52:56 ram Exp $
3 ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
5 ?RCS: You may redistribute only under the terms of the Artistic Licence,
6 ?RCS: as specified in the README file that comes with the distribution.
7 ?RCS: You may reuse parts of this distribution only within the terms of
8 ?RCS: that same Artistic Licence; a copy of which may be found at the root
9 ?RCS: of the source tree for dist 3.0.
11 ?RCS: Original Author: Andy Dougherty <doughera@lafcol.lafayette.edu>
13 ?RCS: $Log: d_dlopen.U,v $
14 ?RCS: Revision 3.0.1.2 1995/07/25 13:52:56 ram
15 ?RCS: patch56: force compile-link test since symbol might lie in crt0.o (ADO)
17 ?RCS: Revision 3.0.1.1 1994/08/29 16:07:34 ram
18 ?RCS: patch32: created by ADO
20 ?MAKE:d_dlopen: Inlibc runnm d_cplusplus ccflags gccversion
21 ?MAKE: -pick add $@ %<
23 ?S: This variable conditionally defines the HAS_DLOPEN symbol, which
24 ?S: indicates to the C program that the dlopen() routine is available.
27 ?C: This symbol, if defined, indicates that the dlopen routine is
30 ?H:#$d_dlopen HAS_DLOPEN /**/
35 ?X: We don't permanently change runnm and ccflags, but we do temporarily.
38 : see if dlopen exists
39 ?X: On NetBSD and FreeBSD, dlopen is available, but it is in
40 ?X: /usr/lib/crt0.o, not in any of the libraries. Therefore, do not
41 ?X: use the nm extraction, but use a real compile and link test instead.
43 xxx_ccflags="$ccflags"
45 : with g++ one needs -shared to get is-in-libc to work for dlopen
48 *) case "$d_cplusplus" in
49 "$define") ccflags="$ccflags -shared" ;;
56 ccflags="$xxx_ccflags"