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