source: scripts/native-scripts/native-libtool.sh@ 7ed0e05

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 7ed0e05 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: 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.