source: scripts/scripts/native-scripts/native-libtool.sh @ e0507947

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

r625@server (orig r623): jim | 2005-10-31 12:43:24 -0800
Final Move

  • Property mode set to 100755
File size: 985 bytes
Line 
1#!/bin/bash
2
3# cross-lfs native libtool build
4# ------------------------------
5# $LastChangedBy$
6# $LastChangedDate$
7# $LastChangedRevision$
8# $HeadURL$
9#
10
11cd ${SRC}
12LOG=libtool-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
23### LIBTOOL ###
24unpack_tarball libtool-${LIBTOOL_VER} &&
25cd ${PKGDIR}
26
27max_log_init Libtool ${LIBTOOL_VER} "native (shared)" ${CONFLOGS} ${LOG}
28CC="${CC-gcc} ${ARCH_CFLAGS}" \
29CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
30./configure --prefix=/usr \
31   --datadir=/usr/share/misc ${extra_conf} \
32   >> ${LOGFILE} 2>&1 &&
33echo " o Configure OK" || barf
34
35min_log_init ${BUILDLOGS} &&
36make LDFLAGS="-s" \
37   >> ${LOGFILE} 2>&1 &&
38echo " o Build OK" || barf
39
40min_log_init ${TESTLOGS} &&
41make check \
42   >>  ${LOGFILE} 2>&1 &&
43echo " o Test OK" || errmsg
44
45min_log_init ${INSTLOGS} &&
46make install \
47   >> ${LOGFILE} 2>&1 &&
48echo " o ALL OK" || barf
49
50ldconfig
51
Note: See TracBrowser for help on using the repository browser.