#!/bin/bash # cross-lfs native patch build # ---------------------------- # $LastChangedBy$ # $LastChangedDate$ # $LastChangedRevision$ # $HeadURL$ # cd ${SRC} LOG=patch-native.log set_libdirname setup_multiarch unpack_tarball patch-${PATCH_VER} cd ${PKGDIR} max_log_init Patch ${PATCH_VER} "native (shared)" ${CONFLOGS} ${LOG} CC="${CC-gcc} ${ARCH_CFLAGS}" \ CPPFLAGS="-D_GNU_SOURCE" \ CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \ ./configure --prefix=/usr \ >> ${LOGFILE} 2>&1 && echo " o Configure OK" || barf min_log_init ${BUILDLOGS} && make ${PMFLAGS} LDFLAGS="-s" \ >> ${LOGFILE} 2>&1 && echo " o Build OK" || barf min_log_init ${INSTLOGS} && make install \ >> ${LOGFILE} 2>&1 && echo " o ALL OK" || barf