aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-08-25 18:07:41 +0000
committerUlrich Drepper <drepper@redhat.com>2000-08-25 18:07:41 +0000
commit1bc777b883b5d3631f97d5c1ccfa7fca20b6a48f (patch)
treed19ee465f2c4b9690a2402b373b5327d7828fb0d
parent7045878b042789db21af0c4f3254ce1a331420a8 (diff)
downloadglibc-1bc777b883b5d3631f97d5c1ccfa7fca20b6a48f.zip
glibc-1bc777b883b5d3631f97d5c1ccfa7fca20b6a48f.tar.gz
glibc-1bc777b883b5d3631f97d5c1ccfa7fca20b6a48f.tar.bz2
Update.
* Makeconfig: Ensures the soversions.mk part of Makefile gets included before building gnu/lib-names.h Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
-rw-r--r--ChangeLog4
-rw-r--r--Makeconfig19
2 files changed, 15 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index b63e3d2..3267ddb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2000-08-25 Ulrich Drepper <drepper@redhat.com>
+ * Makeconfig: Ensures the soversions.mk part of Makefile gets
+ included before building gnu/lib-names.h
+ Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
+
* elf/dl-close.c (_dl_close): Don't run destructors of objects
marked DF_1_NODELETE.
diff --git a/Makeconfig b/Makeconfig
index 5a0e4d6..b6df6db 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -725,14 +725,15 @@ $(common-objpfx)soversions.i: $(..)shlib-versions $(..)Makeconfig \
done > $@T; exit 0
mv -f $@T $@
$(common-objpfx)soversions.mk: $(common-objpfx)soversions.i
- while read lib number setname; do \
- case $$number in \
- [0-9]*) echo "$$lib.so-version=.$$number"; \
- echo "all-sonames+=$$lib=$$lib.so\$$($$lib.so-version)";;\
- *) echo "$$lib.so-version=$$number"; \
- echo "all-sonames+=$$lib=\$$($$lib.so-version)";;\
- esac; \
- done < $< > $@T; exit 0
+ (while read lib number setname; do \
+ case $$number in \
+ [0-9]*) echo "$$lib.so-version=.$$number"; \
+ echo "all-sonames+=$$lib=$$lib.so\$$($$lib.so-version)";;\
+ *) echo "$$lib.so-version=$$number"; \
+ echo "all-sonames+=$$lib=\$$($$lib.so-version)";;\
+ esac; \
+ done; \
+ echo soversions.mk-done = t;) < $< > $@T; exit 0
mv -f $@T $@
endif
endif
@@ -742,6 +743,7 @@ postclean-generated += soversions.mk
# Generate the header containing the names of all shared libraries.
# We use a stamp file to avoid uncessary recompilations.
before-compile += $(common-objpfx)gnu/lib-names.h
+ifeq ($(soversions.mk-done),t)
$(common-objpfx)gnu/lib-names.h: $(common-objpfx)gnu/lib-names.stmp; @:
$(common-objpfx)gnu/lib-names.stmp: $(common-objpfx)soversions.mk
$(make-target-directory)
@@ -770,6 +772,7 @@ $(common-objpfx)gnu/lib-names.stmp: $(common-objpfx)soversions.mk
echo '#endif /* gnu/lib-names.h */';) > ${@:stmp=T}
$(move-if-change) ${@:stmp=T} ${@:stmp=h}
touch $@
+endif
common-generated += gnu/lib-names.h gnu/lib-names.stmp