summaryrefslogtreecommitdiff
path: root/libpthread
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-11-27 23:34:07 +0000
committerEric Andersen <andersen@codepoet.org>2002-11-27 23:34:07 +0000
commitae35d725cf586347b2adb1a6fe4216e70fce16cf (patch)
tree9fcdb86297695c3324e386e483e85db53133b412 /libpthread
parent44c91e654102116f99f80635c483db49126730e8 (diff)
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
Diffstat (limited to 'libpthread')
-rw-r--r--libpthread/Makefile2
1 files changed, 2 insertions, 0 deletions
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