1 # Copyright (C) 1995-2024 Free Software Foundation, Inc.
2 # This file is part of the GNU C Library.
4 # The GNU C Library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License, or (at your option) any later version.
9 # The GNU C Library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with the GNU C Library; if not, see
16 # <https://www.gnu.org/licenses/>.
23 bits
/dl_find_object.h \
28 libdl-routines
:= libdl-compat
42 extra-libs-others
:= libdl
44 libdl-shared-only-routines
+= libdl-compat
46 # Pretend that libdl.so is a linker script, so that the symbolic
47 # link is not installed.
48 install-lib-ldscripts
= libdl.so
49 $(inst_libdir
)/libdl.so
:
51 ifeq ($(build-shared
),yes
)
53 shared-only-routines
:= dlopenold
56 ifeq (yes
,$(build-shared
))
95 failtestmod.so-no-z-defs
= yes
96 glreflib2.so-no-z-defs
= yes
97 errmsg1mod.so-no-z-defs
= yes
99 ifeq (yes
,$(build-shared
))
120 tststatic-ENV
= LD_LIBRARY_PATH
=$(ld-library-path
):$(common-objpfx
)elf
121 tststatic2-ENV
= $(tststatic-ENV
)
122 tststatic3-ENV
= $(tststatic-ENV
)
123 tststatic4-ENV
= $(tststatic-ENV
)
124 tststatic5-ENV
= $(tststatic-ENV
)
131 modules-names
+= bug-atexit3-lib
133 tests-unsupported
+= bug-atexit3
137 extra-test-objs
+= $(modules-names
:=.os
)
138 generated
+= $(modules-names
:=.so
)
142 test-modules
= $(addprefix $(objpfx
),$(addsuffix .so
,$(modules-names
)))
144 ifeq ($(build-shared
),yes
)
145 # Build all the modules even when not actually running test programs.
146 tests
: $(test-modules
)
149 $(objpfx
)glrefmain.out
: $(objpfx
)glrefmain \
150 $(objpfx
)glreflib1.so
$(objpfx
)glreflib2.so
152 $(objpfx
)failtest.out
: $(objpfx
)failtestmod.so
154 $(objpfx
)tst-dladdr.out
: $(objpfx
)glreflib1.so
156 $(objpfx
)tst-dlinfo.out
: $(objpfx
)glreflib3.so
157 LDFLAGS-glreflib3.so
= -Wl
,-rpath
,:
159 LDFLAGS-default
= $(LDFLAGS-rdynamic
)
160 $(objpfx
)default
: $(objpfx
)defaultmod1.so
$(objpfx
)defaultmod2.so
161 LDFLAGS-defaultmod2.so
= $(LDFLAGS-Bsymbolic
)
163 $(objpfx
)errmsg1.out
: $(objpfx
)errmsg1
$(objpfx
)errmsg1mod.so
165 $(objpfx
)tstatexit.out
: $(objpfx
)tstatexit
$(objpfx
)modatexit.so
167 $(objpfx
)tstcxaatexit.out
: $(objpfx
)tstcxaatexit
$(objpfx
)modcxaatexit.so
169 $(objpfx
)tststatic.out
: $(objpfx
)tststatic
$(objpfx
)modstatic.so
171 $(objpfx
)tststatic2.out
: $(objpfx
)tststatic2
$(objpfx
)modstatic.so \
172 $(objpfx
)modstatic2.so
174 $(objpfx
)tststatic3.out
: $(objpfx
)tststatic3
$(objpfx
)modstatic3.so
176 $(objpfx
)tststatic4.out
: $(objpfx
)tststatic4
$(objpfx
)modstatic3.so
178 $(objpfx
)tststatic5.out
: $(objpfx
)tststatic5
$(objpfx
)modstatic5.so
180 $(objpfx
)bug-dlsym1
: $(objpfx
)bug-dlsym1-lib2.so
181 $(objpfx
)bug-dlsym1.out
: $(objpfx
)bug-dlsym1-lib1.so \
182 $(objpfx
)bug-dlsym1-lib2.so
183 $(objpfx
)bug-dlsym1-lib1.so
: $(objpfx
)bug-dlsym1-lib2.so
185 $(objpfx
)bug-atexit1.out
: $(objpfx
)bug-atexit1-lib.so
187 $(objpfx
)bug-atexit2.out
: $(objpfx
)bug-atexit2-lib.so
190 LDLIBS-bug-atexit3-lib.so
= -lstdc
++ -lgcc_eh
191 $(objpfx
)bug-atexit3-lib.so
: $(libsupport
)
192 $(objpfx
)bug-atexit3.out
: $(objpfx
)bug-atexit3-lib.so
195 $(objpfx
)bug-dl-leaf
: $(objpfx
)bug-dl-leaf-lib.so
196 $(objpfx
)bug-dl-leaf.out
: $(objpfx
)bug-dl-leaf-lib-cb.so
197 $(objpfx
)bug-dl-leaf-lib-cb.so
: $(objpfx
)bug-dl-leaf-lib.so
199 $(objpfx
)tst-rec-dlopen.out
: $(objpfx
)moddummy1.so
$(objpfx
)moddummy2.so