]> Zhao Yanbai Git Server - minix.git/commit
build shared versions of libraries
authorBen Gras <ben@minix3.org>
Sat, 31 Mar 2012 00:28:03 +0000 (02:28 +0200)
committerBen Gras <ben@minix3.org>
Mon, 16 Apr 2012 03:21:20 +0000 (05:21 +0200)
commit4b999f1962a12177a033eaa0986990e1422be3ad
tree341b644d70e6ac0730e09688f5c7503b05f7e1fd
parent53002f6f6cbe45c671348027ed70f406fa588ecd
build shared versions of libraries

building defaults to off until clang is updated.

current clang does not handle -shared, necessary to change the ld
invocation to build shared libraries properly. a new clang should be
installed and MKPIC defaults to no unless the newer clang is detected.

changes:

. mainly small imports of a Makefile or two and small fixes
  (turning things back on that were turned off in Makefiles)
. e.g.: dynamic librefuse now depends on dynamic
  libpuffs, so libpuffs has to be built dynamically too
  and a make dependency barrier is needed in lib/Makefile
. all library objects now have a PIC (for .so) and non-PIC
  version, so everything is built twice.
. generate PIC versions of the compat (un-RENAMEd) jump files,
  include function type annotation in generated assembly
. build progs with -static by default for now
. also build ld.elf_so
. also import NetBSD ldd
49 files changed:
.gitignore
drivers/tty/keymaps/Makefile.inc
etc/mtree/minix.tree
lib/Makefile
lib/generateasm.mk [new file with mode: 0644]
lib/libc/Makefile
lib/libc/Makefile.inc
lib/libc/compat-minix/Makefile.inc
lib/libc/dlfcn/dlfcn_elf.c
lib/libc/minix-config.inc
lib/libcompat_minix/Makefile
lib/libcompat_minix/shlib_version [new file with mode: 0644]
lib/libminlib/Makefile
lib/libminlib/shlib_version [new file with mode: 0644]
lib/libpuffs/shlib_version [new file with mode: 0644]
lib/libterminfo/Makefile
lib/libterminfo/minix-config.inc
lib/libutil/compat-minix/Makefile.inc
lib/libz/shlib_version [new file with mode: 0644]
libexec/Makefile
libexec/ld.elf_so/Makefile
libexec/ld.elf_so/expand.c
libexec/ld.elf_so/load.c
libexec/ld.elf_so/map_object.c
libexec/ld.elf_so/paths.c
libexec/ld.elf_so/reloc.c
libexec/ld.elf_so/rtld.c
libexec/ld.elf_so/rtld.h
libexec/ld.elf_so/xmalloc.c
share/mk/Makefile
share/mk/bsd.gcc.mk [new file with mode: 0644]
share/mk/bsd.lib.mk
share/mk/bsd.own.mk
share/mk/bsd.prog.mk
share/mk/bsd.shlib.mk [new file with mode: 0644]
tools/nbsd_ports
usr.bin/Makefile
usr.bin/ldd/Makefile [new file with mode: 0644]
usr.bin/ldd/Makefile.common [new file with mode: 0644]
usr.bin/ldd/Makefile.elf [new file with mode: 0644]
usr.bin/ldd/Makefile.inc [new file with mode: 0644]
usr.bin/ldd/dummy.c [new file with mode: 0644]
usr.bin/ldd/elf32/Makefile [new file with mode: 0644]
usr.bin/ldd/elf32_compat/Makefile [new file with mode: 0644]
usr.bin/ldd/elf64/Makefile [new file with mode: 0644]
usr.bin/ldd/ldd.1 [new file with mode: 0644]
usr.bin/ldd/ldd.c [new file with mode: 0644]
usr.bin/ldd/ldd.h [new file with mode: 0644]
usr.bin/ldd/ldd_elfxx.c [new file with mode: 0644]