/[gentoo-x86]/eclass/libtool.eclass
Gentoo

Diff of /eclass/libtool.eclass

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

Revision 1.83 Revision 1.84
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.83 2009/05/03 20:03:10 loki_val Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.84 2010/01/27 20:41:27 grobian Exp $
4# 4#
5# Maintainer: base-system@gentoo.org 5# Maintainer: base-system@gentoo.org
6# 6#
7# This eclass patches ltmain.sh distributed with libtoolized packages with the 7# This eclass patches ltmain.sh distributed with libtoolized packages with the
8# relink and portage patch among others 8# relink and portage patch among others
172 done 172 done
173 173
174 [[ ${do_uclibc} == "yes" ]] && \ 174 [[ ${do_uclibc} == "yes" ]] && \
175 elt_patches="${elt_patches} uclibc-conf uclibc-ltconf" 175 elt_patches="${elt_patches} uclibc-conf uclibc-ltconf"
176 176
177 [[ ${CHOST} == *"-freebsd"* ]] && \ 177 case "${CHOST}" in
178 *-aix*)
179 elt_patches="${elt_patches} hardcode aixrtl"
180 ;;
181 *-darwin*)
182 elt_patches="${elt_patches} darwin-ltconf darwin-ltmain darwin-conf"
183 ;;
184 *-freebsd*)
178 elt_patches="${elt_patches} fbsd-conf fbsd-ltconf" 185 elt_patches="${elt_patches} fbsd-conf fbsd-ltconf"
179 186 ;;
180 [[ ${CHOST} == *"-darwin"* ]] && \ 187 *-hpux*)
188 elt_patches="${elt_patches} hpux-conf deplibs hc-flag-ld hardcode hardcode-relink relink-prog no-lc"
189 ;;
190 *-irix*)
181 elt_patches="${elt_patches} darwin-ltconf darwin-ltmain" 191 elt_patches="${elt_patches} irix-ltmain"
192 ;;
193 *-mint*)
194 elt_patches="${elt_patches} mint-conf"
195 ;;
196 esac
182 197
183 for x in ${my_dirlist} ; do 198 for x in ${my_dirlist} ; do
184 local tmp=$(echo "${x}" | sed -e "s|${WORKDIR}||") 199 local tmp=$(echo "${x}" | sed -e "s|${WORKDIR}||")
185 export ELT_APPLIED_PATCHES= 200 export ELT_APPLIED_PATCHES=
186 export ELT_LTMAIN_SH="${x}/ltmain.sh" 201 export ELT_LTMAIN_SH="${x}/ltmain.sh"
258 if [[ -s ${x}/ltconfig ]] ; then 273 if [[ -s ${x}/ltconfig ]] ; then
259 ELT_walk_patches "${x}/ltconfig" "${y}" 274 ELT_walk_patches "${x}/ltconfig" "${y}"
260 ret=$? 275 ret=$?
261 fi 276 fi
262 ;; 277 ;;
278 "darwin-conf")
279 if [[ -e ${x}/configure && \
280 -n $(grep '&& echo \.so ||' "${x}/configure") ]] ; then
281 ELT_walk_patches "${x}/configure" "${y}"
282 ret=$?
283 # ltmain.sh and co might be in a subdirectory ...
284 elif [[ ! -e ${x}/configure && -e ${x}/../configure && \
285 -n $(grep '&& echo \.so ||' "${x}/../configure") ]] ; then
286 ELT_walk_patches "${x}/../configure" "${y}"
287 ret=$?
288 fi
289 ;;
263 "darwin-ltconf") 290 "darwin-ltconf")
264 # Newer libtoolize clears ltconfig, as not used anymore 291 # Newer libtoolize clears ltconfig, as not used anymore
265 if [[ -s ${x}/ltconfig ]] ; then 292 if [[ -s ${x}/ltconfig ]] ; then
266 ELT_walk_patches "${x}/ltconfig" "${y}" 293 ELT_walk_patches "${x}/ltconfig" "${y}"
267 ret=$? 294 ret=$?
295 fi
296 ;;
297 "darwin-ltmain")
298 # special case to avoid false positives (failing to apply
299 # ltmain.sh path message), newer libtools have this patch
300 # built in, so not much to patch around then
301 if [[ -e ${x}/ltmain.sh && \
302 -z $(grep 'verstring="-compatibility_version' "${x}/ltmain.sh") ]] ; then
303 ELT_walk_patches "${x}/ltmain.sh" "${y}"
304 ret=$?
305 fi
306 ;;
307 "aixrtl" | "hpux-conf" | "mint-conf" )
308 ret=1
309 local subret=1
310 if [[ -e ${x}/configure ]]; then
311 ELT_walk_patches "${x}/configure" "${y}"
312 subret=$?
313 # ltmain.sh and co might be in a subdirectory ...
314 elif [[ ! -e ${x}/configure && -e ${x}/../configure ]] ; then
315 ELT_walk_patches "${x}/../configure" "${y}"
316 subret=$?
317 fi
318 if [[ $subret -eq 0 ]]; then
319 # have at least one patch succeeded.
320 ret=0
268 fi 321 fi
269 ;; 322 ;;
270 "install-sh") 323 "install-sh")
271 ELT_walk_patches "${x}/install-sh" "${y}" 324 ELT_walk_patches "${x}/install-sh" "${y}"
272 ret=$? 325 ret=$?

Legend:
Removed from v.1.83  
changed lines
  Added in v.1.84

  ViewVC Help
Powered by ViewVC 1.1.20