# version numbers to use when we install shared objects on this system.
-include $(common-objpfx)soversions.mk
$(common-objpfx)soversions.mk: $(..)shlib-versions $(..)Makeconfig \
+ $(wildcard $(patsubst %, $(..)%/shlib-versions,\
+ $(add-ons))) \
$(common-objpfx)config.make
- sed 's/#.*$$//' $< | while read conf versions; do \
- test -n "$$versions" || continue; \
- case '$(config-machine)-$(config-vendor)-$(config-os)' in $$conf)\
- for v in $$versions; do \
- lib=`echo $$v | sed 's/=.*$$//'`; \
- if eval "test -z \"\$$vers_lib$$lib\""; then \
- eval vers_lib$${lib}=yes; \
- echo $$v | sed "s/^.*=/$$lib.so-version=./"; \
- fi; \
- done ;; esac; done > $@T; exit 0
+ (file="$(..)shlib-versions \
+ $(wildcard $(patsubst %,$(..)%/shlib-versions,$(add-ons)))"; \
+ for f in $$file; do \
+ sed 's/#.*$$//' $$f | while read conf versions; do \
+ test -n "$$versions" || continue; \
+ case '$(config-machine)-$(config-vendor)-$(config-os)' in $$conf)\
+ for v in $$versions; do \
+ lib=`echo $$v | sed 's/=.*$$//'`; \
+ if eval "test -z \"\$$vers_lib$$lib\""; then \
+ eval vers_lib$${lib}=yes; \
+ echo $$v | sed "s/^.*=/$$lib.so-version=./"; \
+ fi; \
+ done ;; esac; done; \
+ done;) > $@T; exit 0
mv -f $@T $@
# Get $(version) defined with the release version number.
# This is the default target; it makes everything except the tests.
.PHONY: all
-all: lib extra_solibs others
+all: lib others
\f
define autoconf-it
@-rm -f $@.new
# These are the targets that are made by making them in each subdirectory.
-+subdir_targets := subdir_lib extra_solibs objects objs others \
- subdir_mostlyclean subdir_clean subdir_distclean \
- subdir_realclean tests subdir_lint.out \
++subdir_targets := subdir_lib objects objs others subdir_mostlyclean \
+ subdir_clean subdir_distclean subdir_realclean \
+ tests subdir_lint.out \
subdir_distinfo \
subdir_echo-headers subdir_echo-distinfo \
subdir_install \
endif # tests
\f
.PHONY: distclean realclean subdir_distclean subdir_realclean \
- subdir_clean subdir_mostlyclean extra_solibs
+ subdir_clean subdir_mostlyclean
subdir_mostlyclean: mostlyclean
subdir_clean: clean
subdir_distclean: distclean
subdir_realclean: realclean
realclean: distclean
distclean: clean
-extra_solibs:
.PHONY: subdir_echo-headers
subdir_echo-headers: echo-headers
config-os = @host_os@
config-sysdirs = @sysnames@
-config-defines = @DEFS@
+defines = @DEFINES@
elf = @elf@
have-initfini = @libc_cv_have_initfini@
+
+
if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
config_makefile=
else
s%@shared@%$shared%g
s%@profile@%$profile%g
s%@omitfp@%$omitfp%g
+s%@DEFINES@%$DEFINES%g
CEOF
EOF
AC_SUBST(profile)
AC_SUBST(omitfp)
+AC_SUBST(DEFINES)
+
if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
config_makefile=
else
ifeq (,$(filter $(lib),$(extra-libs-others)))
lib-noranlib: $(alltypes-$(lib))
ifeq (yes,$(build-shared))
-extra_solibs: $(objpfx)$(lib).so$($(lib).so-version)
+lib-noranlib: $(objpfx)$(lib).so$($(lib).so-version)
endif
else
others: $(alltypes-$(lib))
# The linked shared library is never a dependent of lib-noranlib,
# because linking it will depend on libc.so already being built.
ifneq (,$(filter .so,$(object-suffixes-$(lib))))
-extra_solibs: $(objpfx)$(lib).so
+others: $(objpfx)$(lib).so
endif
/* This is here only because every header file already includes this one. */
+#ifndef __ASSEMBLER__
#include <sys/cdefs.h>
+#endif
/* This is here only because every header file already includes this one. */
#ifndef _LIBC
/* This comes between the return type and function name in
a function definition to make that definition weak. */
#define weak_function __attribute__ ((weak))
+#define weak_const_function __attribute__ ((weak, __const__))
#endif /* HAVE_WEAK_SYMBOLS. */
#endif /* Not ASSEMBLER, and GCC 2.7 or later. */
directive for the function symbol, and a `.weak' directive in addition
will produce an error from the assembler. */
#define weak_function /* empty */
+#define weak_const_function /* empty */
#endif