aboutsummaryrefslogtreecommitdiff
path: root/dlfcn/Makefile
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-04-01 21:49:24 +0000
committerUlrich Drepper <drepper@redhat.com>2000-04-01 21:49:24 +0000
commit4380ef5e29eb219706a725848c4e704762a58708 (patch)
tree0b827eedce1e37f7e13af031b35cd5e203c82a82 /dlfcn/Makefile
parent289e8e7ea11afad41aaac7d43400bf4ee28aada5 (diff)
downloadglibc-4380ef5e29eb219706a725848c4e704762a58708.tar
glibc-4380ef5e29eb219706a725848c4e704762a58708.tar.gz
glibc-4380ef5e29eb219706a725848c4e704762a58708.tar.bz2
glibc-4380ef5e29eb219706a725848c4e704762a58708.zip
Update.
* dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c. (tests): Add glrefmain. Add rules to build modules and run tests. Ignore result of glrefmain for now since it fails. * dlfcn/glrefmain.c: New file. * dlfcn/glreflib1.c: New file. * dlfcn/glreflib2.c: New file. * test-skeleton.c: Include <string.h> for strsignal prototype.
Diffstat (limited to 'dlfcn/Makefile')
-rw-r--r--dlfcn/Makefile21
1 files changed, 19 insertions, 2 deletions
diff --git a/dlfcn/Makefile b/dlfcn/Makefile
index 7457b5687e..31e081f5bb 100644
--- a/dlfcn/Makefile
+++ b/dlfcn/Makefile
@@ -1,4 +1,4 @@
-# Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+# Copyright (C) 1995-1999, 2000 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
# The GNU C Library is free software; you can redistribute it and/or
@@ -20,7 +20,7 @@ subdir := dlfcn
headers := bits/dlfcn.h dlfcn.h
extra-libs := libdl
libdl-routines := dlopen dlclose dlsym dlvsym dlerror dladdr
-distribute := dlopenold.c
+distribute := dlopenold.c glreflib1.c glreflib2.c
extra-libs-others := libdl
@@ -31,4 +31,21 @@ libdl-routines += dlopenold
libdl-shared-only-routines := dlopenold
endif
+ifeq (yes,$(build-shared))
+tests = glrefmain
+endif
+modules-names = glreflib1 glreflib2
+extra-objs += $(modules-names:=.os)
+
include ../Rules
+
+test-modules = $(addprefix $(objpfx),$(addsuffix .so,$(modules-names)))
+$(test-modules): $(objpfx)%.so: $(objpfx)%.os
+ $(build-module)
+
+$(objpfx)glrefmain: $(objpfx)libdl.so
+$(objpfx)glrefmain.out: $(objpfx)glrefmain \
+ $(objpfx)glreflib1.so $(objpfx)glreflib2.so
+ -$(elf-objpfx)$(rtld-installed-name) \
+ --library-path $(rpath-link)$(patsubst %,:%,$(sysdep-library-path)) \
+ $(objpfx)glrefmain > $@