From 774a6c5c91078aed0e926cc6817aa10a2f5d2281 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 12 Dec 2002 22:03:49 +0000 Subject: Use crt1.o when ctor/dtor support is enabled --- extra/gcc-uClibc/gcc-uClibc.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'extra/gcc-uClibc') diff --git a/extra/gcc-uClibc/gcc-uClibc.c b/extra/gcc-uClibc/gcc-uClibc.c index d5eb08b99..69f91472f 100644 --- a/extra/gcc-uClibc/gcc-uClibc.c +++ b/extra/gcc-uClibc/gcc-uClibc.c @@ -197,13 +197,16 @@ int main(int argc, char **argv) xstrcat(&(uClibc_inc[0]), devprefix, "/include/", NULL); xstrcat(&(uClibc_inc[1]), builddir, "/include/", NULL); - xstrcat(&(crt0_path[0]), devprefix, "/lib/crt0.o", NULL); - xstrcat(&(crt0_path[1]), builddir, "/lib/crt0.o", NULL); #ifdef __UCLIBC_CTOR_DTOR__ + xstrcat(&(crt0_path[0]), devprefix, "/lib/crt1.o", NULL); + xstrcat(&(crt0_path[1]), builddir, "/lib/crt1.o", NULL); xstrcat(&(crti_path[0]), devprefix, "/lib/crti.o", NULL); xstrcat(&(crti_path[1]), builddir, "/lib/crti.o", NULL); xstrcat(&(crtn_path[0]), devprefix, "/lib/crtn.o", NULL); xstrcat(&(crtn_path[1]), builddir, "/lib/crtn.o", NULL); +#else + xstrcat(&(crt0_path[0]), devprefix, "/lib/crt0.o", NULL); + xstrcat(&(crt0_path[1]), builddir, "/lib/crt0.o", NULL); #endif xstrcat(&(our_lib_path[0]), "-L", devprefix, "/lib", NULL); -- cgit v1.2.3