This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Problems with tcb-offsets.h
- From: Martin Schwidefsky <schwidefsky at de dot ibm dot com>
- To: libc-alpha at sources dot redhat dot com
- Date: Wed, 15 Jan 2003 18:52:36 +0100
- Subject: Problems with tcb-offsets.h
- Organization: IBM Deutschland GmbH
Hi,
cvs head of today doesn't compile on s390-32 and probably other
architectures as well because tcb-offsets.h doesn't get generated from
tcb-offsets.sym. The reason seems to be one of the latest changes
in Makerules:
@@ -662,8 +666,13 @@
endif
+depfiles := $(addprefix $(objpfx),\
$(filter-out $(addsuffix .d,$(omit-deps)),\
- $(+depfiles))) \
- $(addprefix $(common-objpfx),$(gen-as-const-headers:.sym=.h.d))
+ $(+depfiles)))
+
+# Avoid the .h.d files for any .sym files whose .h files don't exist yet.
+# They will be generated when they're needed, and trying too early won't work.
++gen-as-const := $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
++depfiles += $(addsuffix .d,$(filter $(wildcard $(+gen-as-const)),\
+ $(+gen-as-const)))
ifdef +depfiles
ifneq ($(no_deps),t)
Without this it compiles fine. Any ideas ?
blue skies,
Martin.