/[gentoo-alt]/trunk/overlay/eclass/portability.eclass
Gentoo

Diff of /trunk/overlay/eclass/portability.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 814 Revision 815
109# Gets the flags needed for "NOW" binding 109# Gets the flags needed for "NOW" binding
110# 110#
111# TODO: This function knows only of GNU ld, other linkers needs to be tested 111# TODO: This function knows only of GNU ld, other linkers needs to be tested
112# to recognize their flags. 112# to recognize their flags.
113bindnow-flags() { 113bindnow-flags() {
114 ld-is-gnu && echo "-Wl,-z,now" 114 case $($(tc-getLD) -v 2>&1 </dev/null) in
115 *GNU* | *'with BFD'*) # GNU ld
116 echo "-Wl,-z,now" ;;
117 *Apple*) # Darwin ld
118 echo "-bind_at_load" ;;
119 *)
120 ;;
121 esac
115} 122}

Legend:
Removed from v.814  
changed lines
  Added in v.815

  ViewVC Help
Powered by ViewVC 1.1.20