clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 873009c 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 |
|
---|
11 | cd ${SRC}
|
---|
12 | LOG=libtool-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 | ### LIBTOOL ###
|
---|
24 | unpack_tarball libtool-${LIBTOOL_VER} &&
|
---|
25 | cd ${PKGDIR}
|
---|
26 |
|
---|
27 | max_log_init Libtool ${LIBTOOL_VER} "native (shared)" ${CONFLOGS} ${LOG}
|
---|
28 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
29 | CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
|
---|
30 | ./configure --prefix=/usr \
|
---|
31 | --datadir=/usr/share/misc ${extra_conf} \
|
---|
32 | >> ${LOGFILE} 2>&1 &&
|
---|
33 | echo " o Configure OK" || barf
|
---|
34 |
|
---|
35 | min_log_init ${BUILDLOGS} &&
|
---|
36 | make LDFLAGS="-s" \
|
---|
37 | >> ${LOGFILE} 2>&1 &&
|
---|
38 | echo " o Build OK" || barf
|
---|
39 |
|
---|
40 | min_log_init ${TESTLOGS} &&
|
---|
41 | make check \
|
---|
42 | >> ${LOGFILE} 2>&1 &&
|
---|
43 | echo " o Test OK" || errmsg
|
---|
44 |
|
---|
45 | min_log_init ${INSTLOGS} &&
|
---|
46 | make install \
|
---|
47 | >> ${LOGFILE} 2>&1 &&
|
---|
48 | echo " o ALL OK" || barf
|
---|
49 |
|
---|
50 | ldconfig
|
---|
51 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.