Changeset 4d4988e in mainline


Ignore:
Timestamp:
2011-06-24T02:15:39Z (13 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
021c508
Parents:
3e22494f
Message:

Added intrusive patch for libiberty code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/binutils/intrusive.sh

    r3e22494f r4d4988e  
    6666# became mandatory (although not really needed).
    6767#
     68# Patch 4
     69# Whereas most systems maps pid_t to signed type, HelenOS maps it
     70# to unsigned type. This causes some type incompatibility in libiberty
     71# files related to executing a subprocess. Since both as and ld are
     72# not runtime dependent on this functionality, the simplest solution is
     73# to patch libiberty to avoid compiler warnings.
     74#
    6875
    6976case "$1" in
     
    7683                cp -f "$2/ld/configure" "$2/ld/configure.backup"
    7784                cp -f "$2/libiberty/configure" "$2/libiberty/configure.backup"
     85                cp -f "$2/libiberty/pex-common.h" "$2/libiberty/pex-common.h.backup"
    7886                cp -f "$2/opcodes/configure" "$2/opcodes/configure.backup"
    7987
     
    116124                > "$2/libiberty/configure"
    117125
     126                # Patch libiberty pex-common.h.
     127                cat "$2/libiberty/pex-common.h.backup" | \
     128                # See Patch 4.
     129                sed 's/pid_t (\*wait)/int (*wait)/g' \
     130                > "$2/libiberty/pex-common.h"
     131
    118132                # Patch opcodes configure script.
    119133                cat "$2/opcodes/configure.backup" | \
     
    133147                mv -f "$2/ld/configure.backup" "$2/ld/configure"
    134148                mv -f "$2/libiberty/configure.backup" "$2/libiberty/configure"
     149                mv -f "$2/libiberty/pex-common.h.backup" "$2/libiberty/pex-common.h"
    135150                mv -f "$2/opcodes/configure.backup" "$2/opcodes/configure"
    136151                ;;
Note: See TracChangeset for help on using the changeset viewer.