OSDN Git Service

Provide atexit() for static builds
authorPeter S. Mazinger <ps.m@gmx.net>
Tue, 27 Sep 2005 10:20:39 +0000 (10:20 -0000)
committerPeter S. Mazinger <ps.m@gmx.net>
Tue, 27 Sep 2005 10:20:39 +0000 (10:20 -0000)
libc/Makefile

index 4d528af..14b83ef 100644 (file)
@@ -70,7 +70,7 @@ $(LIBNAME) shared_$(LIBNAME) ar-target: subdirs
                $(AR) $(ARFLAGS) $(LIBNAME) $$objs || exit 1 ; \
        done
        cp $(LIBNAME) shared_$(LIBNAME)
-       $(AR) $(ARFLAGS) $(LIBNAME) misc/internals/static.o
+       $(AR) $(ARFLAGS) $(LIBNAME) misc/internals/static.o `cat nonshared_obj.*`
        $(RANLIB) $(LIBNAME)
 
 $(LIBNAME_TARGET): $(LIBNAME)