source: scripts/target-scripts/target-nasm.sh @ 617118d

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 617118d was 617118d, checked in by Jim Gifford <clfs@…>, 18 years ago

r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure

  • Property mode set to 100755
File size: 1.2 KB
Line 
1#!/bin/bash
2
3# cross-lfs target nasm build
4# -------------------------------
5# $LastChangedBy$
6# $LastChangedDate$
7# $LastChangedRevision$
8# $HeadURL$
9#
10
11cd ${SRC}
12LOG="nasm-target.log"
13
14if [ "${USE_SYSROOT}" = "Y" ]; then
15   BUILD_PREFIX=/usr
16   INSTALL_PREFIX="${LFS}${BUILD_PREFIX}"
17   INSTALL_OPTIONS="INSTALLROOT=${LFS}"
18else
19   BUILD_PREFIX="${TGT_TOOLS}"
20   INSTALL_PREFIX="${TGT_TOOLS}"
21   INSTALL_OPTIONS=""
22fi
23
24unpack_tarball nasm-${NASM_VER} &&
25cd ${SRC}/${PKGDIR}
26
27# build nasm, bin86 and lilo 32 bit
28case ${TGT_ARCH} in
29   x86_64 ) ARCH_CFLAGS="-m32" ;;
30esac
31
32max_log_init nasm ${NASM_VER} target ${CONFLOGS} ${LOG}
33CC="${TARGET}-gcc ${ARCH_CFLAGS}" CFLAGS="-O2 -pipe" \
34./configure --prefix=${BUILD_PREFIX} --host=${TARGET} \
35   --libexecdir=${TGT_TOOLS}/lib/nasm \
36   --mandir=${TGT_TOOLS}/share/man \
37   >> ${LOGFILE} 2>&1 &&
38echo " o Configure OK" &&
39
40min_log_init ${BUILDLOGS} &&
41# should use "make everything" to generate docs, but we won't
42# have ps2pdf yet
43make LDFLAGS="-s" \
44   >> ${LOGFILE} 2>&1 &&
45echo " o Build OK" &&
46
47min_log_init ${INSTLOGS} &&
48make ${INSTALL_OPTIONS} install \
49   >> ${LOGFILE} &&
50make ${INSTALL_OPTIONS} install_rdf \
51   >> ${LOGFILE} &&
52echo " o ALL OK" || barf
53
Note: See TracBrowser for help on using the repository browser.