clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 873009c was 617118d, checked in by Jim Gifford <clfs@…>, 19 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 |
|
---|
11 | cd ${SRC}
|
---|
12 | LOG="nasm-target.log"
|
---|
13 |
|
---|
14 | if [ "${USE_SYSROOT}" = "Y" ]; then
|
---|
15 | BUILD_PREFIX=/usr
|
---|
16 | INSTALL_PREFIX="${LFS}${BUILD_PREFIX}"
|
---|
17 | INSTALL_OPTIONS="INSTALLROOT=${LFS}"
|
---|
18 | else
|
---|
19 | BUILD_PREFIX="${TGT_TOOLS}"
|
---|
20 | INSTALL_PREFIX="${TGT_TOOLS}"
|
---|
21 | INSTALL_OPTIONS=""
|
---|
22 | fi
|
---|
23 |
|
---|
24 | unpack_tarball nasm-${NASM_VER} &&
|
---|
25 | cd ${SRC}/${PKGDIR}
|
---|
26 |
|
---|
27 | # build nasm, bin86 and lilo 32 bit
|
---|
28 | case ${TGT_ARCH} in
|
---|
29 | x86_64 ) ARCH_CFLAGS="-m32" ;;
|
---|
30 | esac
|
---|
31 |
|
---|
32 | max_log_init nasm ${NASM_VER} target ${CONFLOGS} ${LOG}
|
---|
33 | CC="${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 &&
|
---|
38 | echo " o Configure OK" &&
|
---|
39 |
|
---|
40 | min_log_init ${BUILDLOGS} &&
|
---|
41 | # should use "make everything" to generate docs, but we won't
|
---|
42 | # have ps2pdf yet
|
---|
43 | make LDFLAGS="-s" \
|
---|
44 | >> ${LOGFILE} 2>&1 &&
|
---|
45 | echo " o Build OK" &&
|
---|
46 |
|
---|
47 | min_log_init ${INSTLOGS} &&
|
---|
48 | make ${INSTALL_OPTIONS} install \
|
---|
49 | >> ${LOGFILE} &&
|
---|
50 | make ${INSTALL_OPTIONS} install_rdf \
|
---|
51 | >> ${LOGFILE} &&
|
---|
52 | echo " o ALL OK" || barf
|
---|
53 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.