source: scripts/native-scripts/native-procps.sh@ 12ba0a4

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 12ba0a4 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.3 KB
Line 
1#!/bin/bash
2
3# cross-lfs native procps build
4# -----------------------------
5# $LastChangedBy$
6# $LastChangedDate$
7# $LastChangedRevision$
8# $HeadURL$
9#
10
11cd ${SRC}
12LOG=procps-native.log
13
14SELF=`basename ${0}`
15set_buildenv
16set_libdirname
17setup_multiarch
18
19# TODO: look into how this is handled on non x86_64 and non multiarch
20if [ ! "${libdirname}" = "lib" ]; then
21 extra_makeopts="lib64=${libdirname}"
22fi
23
24unpack_tarball procps-${PROCPS_VER} &&
25cd ${PKGDIR}
26
27# Following sed implements the LFS procps patch
28# apply_patch procps-${PROCPS_VER}
29# (20030404: works for procps 3.1.5 - 3.1.8)
30# Not required for 3.2.x
31#test -f w.c-ORIG ||
32# cp w.c w.c-ORIG
33#sed 's@setlocale(LC_ALL, "")@setlocale(LC_NUMERIC, "C")@' w.c-ORIG \
34# > w.c
35
36# Mod Makefile, pass extra LDFLAGS from env
37# change install dirs to lib64 if biarch
38
39test -f Makefile-ORIG ||
40 cp Makefile Makefile-ORIG
41
42LDFLAGS="-s"
43
44sed -e "s/LDFLAGS :=.*/& ${LDFLAGS}/" \
45 -e "s@^\(lib64.*:= \).*@\1${libdirname}@g" \
46 Makefile-ORIG > Makefile
47
48max_log_init Procps ${PROCPS_VER} "native (shared)" ${BUILDLOGS} ${LOG}
49make CC="${CC-gcc} ${ARCH_CFLAGS}" \
50 CFLAGS="-O2 -pipe ${TGT_CFLAGS}" ${extra_makeopts} \
51 >> ${LOGFILE} 2>&1 &&
52echo " o Build OK" &&
53
54min_log_init ${INSTLOGS} &&
55make CC="${CC-gcc} ${ARCH_CFLAGS}" ${extra_makeopts} install \
56 >> ${LOGFILE} 2>&1 &&
57echo " o ALL OK" || barf
58
Note: See TracBrowser for help on using the repository browser.