[BACK]Return to bsd.lib.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / share / mk

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/share/mk/bsd.lib.mk between version 1.352 and 1.353

version 1.352, 2014/04/11 15:56:09 version 1.353, 2014/04/11 16:51:43
Line 618  ${_LIB.so.full}: ${SOLIB} ${DPADD} ${DPL
Line 618  ${_LIB.so.full}: ${SOLIB} ${DPADD} ${DPL
     ${SHLIB_LDSTARTFILE} ${SHLIB_LDENDFILE}      ${SHLIB_LDSTARTFILE} ${SHLIB_LDENDFILE}
         ${_MKTARGET_BUILD}          ${_MKTARGET_BUILD}
         rm -f ${.TARGET}          rm -f ${.TARGET}
         ${LIBCC} ${LDLIBC} -shared ${SHLIB_SHFLAGS} \          ${LIBCC} ${LDLIBC} -Wl,-x -shared ${SHLIB_SHFLAGS} \
             ${_LDFLAGS.${_LIB}} -o ${.TARGET} ${_LIBLDOPTS} \              ${_LDFLAGS.${_LIB}} -o ${.TARGET} ${_LIBLDOPTS} \
             -Wl,--whole-archive ${SOLIB} \              -Wl,--whole-archive ${SOLIB} \
             -Wl,--no-whole-archive ${_LDADD.${_LIB}}              -Wl,--no-whole-archive ${_LDADD.${_LIB}}
 # XXX[1]: When the arm linker bug where -Wl,-x eats $a,$d,$t from shared  
 # libraries remove the following conditional and put this back in the linker  
 # line. For now we delay stripping symbols until the debug split step or skip  
 # it alltogether if we are using -g  
 .if !defined(_LIB.so.debug) && !empty(CFLAGS:M*-g*)  
         ${OBJCOPY} ${OBJCOPYLIBFLAGS} ${.TARGET}  
 .endif  
 #  We don't use INSTALL_SYMLINK here because this is just  #  We don't use INSTALL_SYMLINK here because this is just
 #  happening inside the build directory/objdir. XXX Why does  #  happening inside the build directory/objdir. XXX Why does
 #  this spend so much effort on libraries that aren't live??? XXX  #  this spend so much effort on libraries that aren't live??? XXX
Line 646  ${_LIB.so.full}: ${SOLIB} ${DPADD} ${DPL
Line 639  ${_LIB.so.full}: ${SOLIB} ${DPADD} ${DPL
 .if defined(_LIB.so.debug)  .if defined(_LIB.so.debug)
 ${_LIB.so.debug}: ${_LIB.so.full}  ${_LIB.so.debug}: ${_LIB.so.full}
         ${_MKTARGET_CREATE}          ${_MKTARGET_CREATE}
 # XXX[2]: OBJCOPYLIBFLAGS is used to strip the symbols because it was not  
 # done above.  
         (  ${OBJCOPY} --only-keep-debug ${_LIB.so.full} ${_LIB.so.debug} \          (  ${OBJCOPY} --only-keep-debug ${_LIB.so.full} ${_LIB.so.debug} \
         && ${OBJCOPY} ${OBJCOPYLIBFLAGS} --strip-debug -p -R .gnu_debuglink \          && ${OBJCOPY} --strip-debug -p -R .gnu_debuglink \
                 --add-gnu-debuglink=${_LIB.so.debug} ${_LIB.so.full} \                  --add-gnu-debuglink=${_LIB.so.debug} ${_LIB.so.full} \
         ) || (rm -f ${.TARGET}; false)          ) || (rm -f ${.TARGET}; false)
 .endif  .endif

Legend:
Removed from v.1.352  
changed lines
  Added in v.1.353

CVSweb <webmaster@jp.NetBSD.org>