/[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 821 Revision 822
92 else 92 else
93 echo pmake 93 echo pmake
94 fi 94 fi
95} 95}
96 96
97# Returns ture if the linker is GNU ld
98ld-is-gnu() {
99 case $($(tc-getLD) -v 2>&1 </dev/null) in
100 *GNU* | *'with BFD'*)
101 return 0
102 ;;
103 *)
104 return 1
105 ;;
106 esac
107}
108
109# Gets the flags needed for "NOW" binding 97# Gets the flags needed for "NOW" binding
110#
111# TODO: This function knows only of GNU ld, other linkers needs to be tested
112# to recognize their flags.
113bindnow-flags() { 98bindnow-flags() {
114 case $($(tc-getLD) -v 2>&1 </dev/null) in 99 case $($(tc-getLD) -v 2>&1 </dev/null) in
115 *GNU* | *'with BFD'*) # GNU ld 100 *GNU* | *'with BFD'*) # GNU ld
116 echo "-Wl,-z,now" ;; 101 echo "-Wl,-z,now" ;;
117 *Apple*) # Darwin ld 102 *Apple*) # Darwin ld

Legend:
Removed from v.821  
changed lines
  Added in v.822

  ViewVC Help
Powered by ViewVC 1.1.20