clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change
on this file since 617118d was
617118d,
checked in by Jim Gifford <clfs@…>, 18 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.2 KB
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | # cross-lfs native inetutils build |
---|
4 | # -------------------------------- |
---|
5 | # $LastChangedBy$ |
---|
6 | # $LastChangedDate$ |
---|
7 | # $LastChangedRevision$ |
---|
8 | # $HeadURL$ |
---|
9 | # |
---|
10 | |
---|
11 | cd ${SRC} |
---|
12 | LOG=inetutils-native.log |
---|
13 | |
---|
14 | set_libdirname |
---|
15 | setup_multiarch |
---|
16 | |
---|
17 | unpack_tarball inetutils-${INETUTILS_VER} |
---|
18 | cd ${PKGDIR} |
---|
19 | |
---|
20 | # Retrieve target_gcc_ver from gcc -v output |
---|
21 | target_gcc_ver=`${TARGET}-gcc -v 2>&1 | grep " version " | \ |
---|
22 | sed 's@.*version \([0-9.]*\).*@\1@g'` |
---|
23 | |
---|
24 | case ${target_gcc_ver} in |
---|
25 | 4.* ) |
---|
26 | apply_patch inetutils-1.4.2-gcc4_fixes-1 |
---|
27 | ;; |
---|
28 | esac |
---|
29 | |
---|
30 | max_log_init inetutils ${INETUTILS_VER} "native (shared)" ${CONFLOGS} ${LOG} |
---|
31 | CC="${CC-gcc} ${ARCH_CFLAGS}" \ |
---|
32 | CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \ |
---|
33 | ./configure --prefix=/usr \ |
---|
34 | --libexecdir=/usr/${libdirname}/inetutils \ |
---|
35 | --sysconfdir=/etc --localstatedir=/var \ |
---|
36 | --mandir=/usr/share/man --infodir=/usr/share/info \ |
---|
37 | --disable-whois --disable-syslogd --disable-logger --disable-servers \ |
---|
38 | >> ${LOGFILE} 2>&1 && |
---|
39 | echo " o Configure OK" && |
---|
40 | |
---|
41 | min_log_init ${BUILDLOGS} && |
---|
42 | make LDFLAGS="-s" \ |
---|
43 | >> ${LOGFILE} 2>&1 && |
---|
44 | echo " o Build OK" && |
---|
45 | |
---|
46 | min_log_init ${INSTLOGS} && |
---|
47 | make install \ |
---|
48 | >> ${LOGFILE} 2>&1 && |
---|
49 | echo " o ALL OK" || barf |
---|
50 | |
---|
51 | mv /usr/bin/ping /bin/ |
---|
52 | |
---|
Note: See
TracBrowser
for help on using the repository browser.