mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 10:50:07 +00:00
358cad7c11
(common-generated): Add it. (build-shlib, build-module): Use that instead of generating every time. ($(common-objpfx)libc.so): Depend on it. (lib%.so rule): Likewise. (build-module-helper-objlist): Remove %.lds. * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on $(common-objpfx)shlib.lds. * dlfcn/Makefile ($(test-modules)): Likewise.
18 lines
655 B
Makefile
18 lines
655 B
Makefile
mod := $(firstword $(extra-modules-left))
|
|
extra-modules-left := $(strip $(filter-out $(mod),$(extra-modules-left)))
|
|
|
|
extra-objs := $(extra-objs) $(patsubst %,%.os,$($(mod)-routines))
|
|
|
|
$(objpfx)$(mod).so: $(addprefix $(objpfx),$(addsuffix .os,$($(mod)-routines)))\
|
|
$(common-objpfx)shlib.lds
|
|
$(build-module)
|
|
|
|
# Depend on libc.so so a DT_NEEDED is generated in the shared objects.
|
|
# This ensures they will load libc.so for needed symbols if loaded by
|
|
# a statically-linked program that hasn't already loaded it.
|
|
$(objpfx)$(mod).so: $(common-objpfx)libc.so $(common-objpfx)libc_nonshared.a
|
|
|
|
ifneq (,$(extra-modules-left))
|
|
include extra-module.mk
|
|
endif
|