Changeset 312

Show
Ignore:
Timestamp:
06/14/08 20:57:52 (5 months ago)
Author:
saurik
Message:

Factored strip out of build, added support for compiling the new codehashing routines, and deactivated -g globally.

Location:
trunk
Files:
2 added
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/make.sh

    r259 r312  
    1515 
    1616if [[ ! -x ${PKG_BASE}/util/ldid || ${PKG_BASE}/util/ldid -ot ${PKG_BASE}/util/ldid.cpp ]]; then 
    17     g++ -I ~/menes -o "${PKG_BASE}"/util/ldid{,.cpp} -x c "${PKG_BASE}"/util/lookup2.c 
     17    g++ -I ~/menes -o "${PKG_BASE}"/util/ldid{,.cpp} -x c "${PKG_BASE}"/util/{lookup2,sha1}.c 
    1818fi 
    1919 
     
    105105function pkg:configure() { 
    106106    PKG_CONFIG="$(realpath "${PKG_BASE}/util/pkg-config.sh")" \ 
     107    ac_cv_prog_cc_g=no \ 
    107108    "${PKG_CONF}" \ 
    108109        --build=x86_64-unknown-linux-gnu \ 
     
    175176rmdir_ "${PKG_DEST}/usr" 
    176177 
    177 find "${PKG_DEST}" -type f -perm -0500 -print0 | while read -r -d $'\0' bin; do 
    178     case "$(file "${bin}")" in (\ 
    179         *': Mach-O executable acorn' |\ 
    180         *': Mach-O dynamically linked shared library acorn'\ 
    181     );; (*) continue;; esac 
    182  
    183     "${PKG_TARG}-strip" -x -no_uuid "${bin}" 
    184 done 
     178if [[ -e "${PKG_BASE}/arch/${PKG_ARCH}/strip" ]]; then 
     179    . "${PKG_BASE}/arch/${PKG_ARCH}/strip" 
     180fi 
    185181 
    186182cp -a "${PKG_DATA}/_metadata/version" "${PKG_STAT}/data-ver"