diff options
author | David McCullough <davidm@snapgear.com> | 2003-03-03 06:47:56 +0000 |
---|---|---|
committer | David McCullough <davidm@snapgear.com> | 2003-03-03 06:47:56 +0000 |
commit | 1837e910e4588e0e4877f09906a0286b27c18543 (patch) | |
tree | 63c8f1f2885f413fd39385c4c4ddc26b32f41222 /Makefile | |
parent | ecd46eeb7e66c76a9518803b33fafb27d1e3c209 (diff) |
more uClinux shared libs fixups
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -65,13 +65,15 @@ ifneq ($(SHARED_TARGET),) lib/main.o: $(ROOTDIR)/lib/libc/main.c $(CC) $(CFLAGS) $(ARCH_CFLAGS) -c -o $@ $(ROOTDIR)/lib/libc/main.c -bogus $(SHARED_TARGET): lib/libc.a lib/main.o +bogus $(SHARED_TARGET): lib/libc.a lib/main.o Makefile make -C $(ROOTDIR) relink - $(CC) -o $(SHARED_TARGET) $(ARCH_CFLAGS) -Wl,-elf2flt -nostdlib \ + $(CC) -nostartfiles -o $(SHARED_TARGET) $(ARCH_CFLAGS) -Wl,-elf2flt -nostdlib \ -Wl,-shared-lib-id,${LIBID} \ - lib/main.o -Wl,--whole-archive,lib/libc.a,-lgcc,--no-whole-archive + lib/main.o \ + -Wl,--whole-archive,lib/libc.a,-lgcc,--no-whole-archive $(OBJCOPY) -L _GLOBAL_OFFSET_TABLE_ -L main -L __main -L _start \ - -L __uClibc_main -L lib_main -L _exit_dummy_ref \ + -L __uClibc_main -L __uClibc_start_main -L lib_main \ + -L _exit_dummy_ref \ -L __do_global_dtors -L __do_global_ctors \ -L __CTOR_LIST__ -L __DTOR_LIST__ \ -L _current_shared_library_a5_offset_ \ |