From ae35d725cf586347b2adb1a6fe4216e70fce16cf Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 27 Nov 2002 23:34:07 +0000 Subject: Make support for global constructors and global destructors be configurable, so people who do not need or want ctor/dtor support can disable it and make their binaries a little bit smaller. -Erik --- libpthread/Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libpthread/Makefile') diff --git a/libpthread/Makefile b/libpthread/Makefile index c98ef8bda..87e20749f 100644 --- a/libpthread/Makefile +++ b/libpthread/Makefile @@ -36,6 +36,7 @@ ifeq ($(strip $(DODEBUG)),y) endif endif +ifeq ($(strip $(UCLIBC_CTOR_DTOR)),y) ifeq ($(strip $(DOPIC)),y) START_FILES = $(TOPDIR)lib/crti.o $(LIBGCC_DIR)crtbeginS.o END_FILES = $(LIBGCC_DIR)crtendS.o $(TOPDIR)lib/crtn.o @@ -43,6 +44,7 @@ else START_FILES = $(TOPDIR)lib/crti.o $(LIBGCC_DIR)crtbegin.o END_FILES = $(LIBGCC_DIR)crtend.o $(TOPDIR)lib/crtn.o endif +endif ALL_SUBDIRS = linuxthreads linuxthreads_db -- cgit v1.2.3