Browse Source

Improved multilib parse-config first to cleanup and then injecting architecture specific compiler flags

Note: Currently only x86-64 is implemented but others will be added as soon
      as they are tested properly!
user/amery/janus
Christian Wiese 18 years ago
committed by Alejandro Mery
parent
commit
f15f607454
1 changed files with 16 additions and 3 deletions
  1. +16
    -3
      lib/multilib/parse-config

+ 16
- 3
lib/multilib/parse-config

@ -1,11 +1,11 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
#
# Filename: lib/multilib/parse-config
# Copyright (C) 2008 The OpenSDE Project
#
#
# More information can be found in the files COPYING and README.
#
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
@ -21,6 +21,19 @@
multilib_abi_loop() {
abi=$( echo "$arch_abis" | cut -d ' ' "-f$1" )
echo_status "Building multilib $pkg for $abi ABI"
# cleanup architecture specific compiler flags
var_remove_regex CC_WRAPPER_INSERT ' ' '\-m.*'
var_remove_regex CXX_WRAPPER_INSERT ' ' '\-m.*'
# inject architecture specific compiler flags
case "$arch" in
x86-64)
var_insert CC_WRAPPER_INSERT ' ' "-m$abi"
var_insert CXX_WRAPPER_INSERT ' ' "-m$abi"
;;
esac
# alter arch_target if we build 32bit
if expr $abi : "32" > /dev/null ; then
arch_target="`echo $arch_target | arch2arch32`"

Loading…
Cancel
Save