diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-12-12 22:03:49 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-12-12 22:03:49 +0000 |
commit | 774a6c5c91078aed0e926cc6817aa10a2f5d2281 (patch) | |
tree | 015c683548a2ed75b31a3a216b8887b3070439b4 /extra | |
parent | ddf02f5f8e4e5ad849af3b268fd318c40051fea5 (diff) |
Use crt1.o when ctor/dtor support is enabled
Diffstat (limited to 'extra')
-rw-r--r-- | extra/gcc-uClibc/gcc-uClibc.c | 7 |
1 files changed, 5 insertions, 2 deletions
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); |