/[gentoo-x86]/sys-libs/glibc/files/eblits/common.eblit
Gentoo

Diff of /sys-libs/glibc/files/eblits/common.eblit

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

Revision 1.12 Revision 1.13
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2010 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/sys-libs/glibc/files/eblits/common.eblit,v 1.12 2010/09/30 06:29:21 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.13 2011/03/09 08:10:38 vapier Exp $
4 4
5# We need to be able to set alternative headers for 5# We need to be able to set alternative headers for
6# compiling for non-native platform 6# compiling for non-native platform
7# Will also become useful for testing kernel-headers without screwing up 7# Will also become useful for testing kernel-headers without screwing up
8# the whole system. 8# the whole system.
260 *) return 1 ;; 260 *) return 1 ;;
261 esac 261 esac
262 version_is_at_least ${nver} ${bver} 262 version_is_at_least ${nver} ${bver}
263} 263}
264 264
265# Setup toolchain variables that would be defined in the profiles for these archs. 265# Setup toolchain variables that had historically
266# been defined in the profiles for these archs.
266setup_env() { 267setup_env() {
267 # silly users 268 # silly users
268 unset LD_RUN_PATH 269 unset LD_RUN_PATH
269 270
271 multilib_env ${CTARGET_OPT:-${CTARGET}}
270 if is_crosscompile || tc-is-cross-compiler ; then 272 if is_crosscompile || tc-is-cross-compiler ; then
271 multilib_env ${CTARGET}
272 if ! use multilib ; then 273 if ! use multilib ; then
273 MULTILIB_ABIS=${DEFAULT_ABI} 274 MULTILIB_ABIS=${DEFAULT_ABI}
274 else 275 else
275 MULTILIB_ABIS=${MULTILIB_ABIS:-${DEFAULT_ABI}} 276 MULTILIB_ABIS=${MULTILIB_ABIS:-${DEFAULT_ABI}}
276 fi 277 fi
283 284
284 setup_flags 285 setup_flags
285 286
286 export ABI=${ABI:-${DEFAULT_ABI:-default}} 287 export ABI=${ABI:-${DEFAULT_ABI:-default}}
287 288
288 if is_crosscompile || tc-is-cross-compiler ; then
289 local VAR=CFLAGS_${ABI} 289 local VAR=CFLAGS_${ABI}
290 # We need to export CFLAGS with abi information in them because 290 # We need to export CFLAGS with abi information in them because
291 # glibc's configure script checks CFLAGS for some targets (like mips) 291 # glibc's configure script checks CFLAGS for some targets (like mips)
292 export CFLAGS="${!VAR} ${CFLAGS}" 292 export CFLAGS="${!VAR} ${CFLAGS}"
293 fi
294} 293}
295 294
296just_headers() { 295just_headers() {
297 is_crosscompile && use crosscompile_opts_headers-only 296 is_crosscompile && use crosscompile_opts_headers-only
298} 297}

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.20