From: Sunil N. <su...@su...> - 2012-12-06 19:01:19
|
Hello, OpenBSD's bsd.lib.mk requires both SHLIB_MAJOR and SHLIB_MINOR to be defined for building shared library. NOPIC on OpenBSD suppress PIC versions as well as shared libraries. Earlier.... make -n | fgrep shared with this diff... make -n | fgrep shared cc -shared -fpic -o libelf.so.1.0 `lorder elf.so elf_begin.so elf_cntl.so elf_end.so elf_errmsg.so elf_errno.so elf_data.so elf_fill.so elf_flag.so elf_getarhdr.so elf_getarsym.so elf_getbase.so elf_getident.so elf_hash.so elf_kind.so elf_memory.so elf_next.so elf_open.so elf_rand.so elf_rawfile.so elf_phnum.so elf_shnum.so elf_shstrndx.so elf_scn.so elf_strptr.so elf_update.so elf_version.so gelf_cap.so gelf_checksum.so gelf_dyn.so gelf_ehdr.so gelf_getclass.so gelf_fsize.so gelf_move.so gelf_phdr.so gelf_rel.so gelf_rela.so gelf_shdr.so gelf_sym.so gelf_syminfo.so gelf_symshndx.so gelf_xlate.so libelf_align.so libelf_allocate.so libelf_ar.so libelf_ar_util.so libelf_checksum.so libelf_data.so libelf_ehdr.so libelf_extended.so libelf_memory.so libelf_open.so libelf_phdr.so libelf_shdr.so libelf_xlate.so libelf_fsize.so libelf_msize.so libelf_convert.so|tsort -q` Comments? Index: libelf/Makefile =================================================================== --- libelf/Makefile (revision 2710) +++ libelf/Makefile (working copy) @@ -66,6 +66,7 @@ CLEANFILES= ${GENSRCS} SHLIB_MAJOR= 1 +SHLIB_MINOR= 0 WARNS?= 6 Index: mk/os.OpenBSD.mk =================================================================== --- mk/os.OpenBSD.mk (revision 2710) +++ mk/os.OpenBSD.mk (working copy) @@ -6,4 +6,4 @@ MKTESTS?= no # Enable the test suites. MKNOWEB?= no # Build literate programs. -NOPIC?= yes +#NOPIC?= yes |