OSDN Git Service

librt: Use -nodefaultlibs instead of -nostdlib
authorKhem Raj <raj.khem@gmail.com>
Sat, 23 Jun 2012 23:51:52 +0000 (16:51 -0700)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sun, 22 Mar 2015 13:49:27 +0000 (14:49 +0100)
commit534f44d53146457b3ca686c47efb9207543b88e1
tree611583ea4b77862b4c2d7310d253e5decfd87ba6
parentbf6f1313132a3d99d645ea8b6661c23d68235278
librt: Use -nodefaultlibs instead of -nostdlib

nostdlib disables linking in startup files too which is not
what we want here since it needs to resolve __dso_handle
which comes from crtbeginS.o, otherwise librt has this
undefined reference to a weak undefined __dso_handle that
shows up as error (with gold linker)
when shared libraries are being built which are
linking in librt

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
librt/Makefile.in