source: scripts/native-scripts/native-file.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.1 KB
Line 
1#!/bin/bash
2
3# cross-lfs native file build
4# ---------------------------
5# $LastChangedBy$
6# $LastChangedDate$
7# $LastChangedRevision$
8# $HeadURL$
9#
10
11cd ${SRC}
12LOG=file-native.log
13
14SELF=`basename ${0}`
15set_buildenv
16set_libdirname
17setup_multiarch
18
19if [ ! "${libdirname}" = "lib" ]; then
20   extra_conf="--libdir=/usr/${libdirname}"
21fi
22
23unpack_tarball file-${FILE_VER} &&
24cd ${PKGDIR}
25
26# Kelledins patch: Using 4.02 file package, this not needed
27case ${FILE_VER} in
28   4.01 ) apply_patch file-${FILE_VER}-lstat ;;
29esac
30
31max_log_init File ${FILE_VER} "native (shared)" ${CONFLOGS} ${LOG}
32CC="${CC-gcc} ${ARCH_CFLAGS}" \
33CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
34./configure --prefix=/usr \
35   --datadir=/usr/share/misc ${extra_conf} \
36   >> ${LOGFILE} 2>&1 &&
37echo " o Configure OK" || barf
38
39min_log_init ${BUILDLOGS} &&
40make LDFLAGS="-s" \
41   >> ${LOGFILE} 2>&1 &&
42echo " o Build OK" || barf
43
44min_log_init ${TESTLOGS} &&
45make check \
46   >>  ${LOGFILE} 2>&1 &&
47echo " o Test OK" || errmsg
48
49min_log_init ${INSTLOGS} &&
50make install \
51      >> ${LOGFILE} 2>&1 &&
52echo " o ALL OK" || barf
53
Note: See TracBrowser for help on using the repository browser.