From 9ddd9870a8be521ba9153efad60715149a320f65 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Mon, 26 Sep 2005 17:31:47 +0000 Subject: Add __cxa_atexit and __cxa_finalize, thanks to Stephen Warren. This patch breaks compatibility with existing binaries, unless the new COMPAT_ATEXIT option is enabled. --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 46af77a59..78d8700dd 100644 --- a/Makefile +++ b/Makefile @@ -243,6 +243,15 @@ ifeq ($(strip $(HAVE_SHARED)),y) $(LN) -sf $(RUNTIME_PREFIX_LIB_FROM_DEVEL_PREFIX_LIB)$$i.$(MAJOR_VERSION) \ $(PREFIX)$(DEVEL_PREFIX)lib/$$i; \ done; + $(RM) $(PREFIX)$(DEVEL_PREFIX)lib/libc.so + sed -e '/^GROUP/d' $(TOPDIR)lib/libc.so > $(PREFIX)$(DEVEL_PREFIX)lib/libc.so +ifeq ($(strip $(COMPAT_ATEXIT)),y) + echo "GROUP ( $(DEVEL_PREFIX)lib/$(NONSHARED_LIBNAME) $(RUNTIME_PREFIX)lib/$(SHARED_MAJORNAME) )" >> \ + $(PREFIX)$(DEVEL_PREFIX)lib/libc.so +else + echo "GROUP ( $(RUNTIME_PREFIX)lib/$(SHARED_MAJORNAME) $(DEVEL_PREFIX)lib/$(NONSHARED_LIBNAME) )" >> \ + $(PREFIX)$(DEVEL_PREFIX)lib/libc.so +endif ifeq ($(strip $(PTHREADS_DEBUG_SUPPORT)),y) $(LN) -sf $(RUNTIME_PREFIX_LIB_FROM_DEVEL_PREFIX_LIB)libthread_db.so.1 \ $(PREFIX)$(DEVEL_PREFIX)lib/libthread_db.so @@ -255,6 +264,7 @@ endif | sed -e 's/\.a$$/_pic.a/'`; \ done ; \ fi + $(RM) $(PREFIX)$(DEVEL_PREFIX)lib/uclibc_nonshared_pic.a # Ugh!!! Remember that libdl.a and libdl_pic.a are different. Since # libdl is pretty small, and not likely to benefit from mklibs.py and # similar, lets just remove libdl_pic.a and avoid the issue -- cgit v1.2.3