]> git.ipfire.org Git - thirdparty/glibc.git/blame - iconvdata/extra-module.mk
Consolidate shlib.lds references in new variables.
[thirdparty/glibc.git] / iconvdata / extra-module.mk
CommitLineData
f4017d20
UD
1mod := $(firstword $(extra-modules-left))
2extra-modules-left := $(strip $(filter-out $(mod),$(extra-modules-left)))
3
bd355af0 4extra-objs := $(extra-objs) $(patsubst %,%.os,$($(mod)-routines))
f4017d20 5
358cad7c 6$(objpfx)$(mod).so: $(addprefix $(objpfx),$(addsuffix .os,$($(mod)-routines)))\
2d4fa81e 7 $(shlib-lds)
d9266ea0 8 $(build-module-asneeded)
f4017d20
UD
9
10# Depend on libc.so so a DT_NEEDED is generated in the shared objects.
11# This ensures they will load libc.so for needed symbols if loaded by
12# a statically-linked program that hasn't already loaded it.
d9266ea0
UD
13$(objpfx)$(mod).so: $(common-objpfx)libc.so \
14 $(common-objpfx)/elf/ld.so \
15 $(common-objpfx)libc_nonshared.a
f4017d20
UD
16
17ifneq (,$(extra-modules-left))
18include extra-module.mk
19endif