clfs-1.2
        clfs-2.1
        clfs-3.0.0-systemd
        clfs-3.0.0-sysvinit
        systemd
        sysvinit
      
      
        
          | Last change
 on this file since 61c0e64 was             617118d, checked in by Jim Gifford <clfs@…>, 20 years ago | 
        
          | 
r561@server (orig r559):  root | 2005-06-05 02:38:49 -0700Fixed 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 |  | 
|---|
| 11 | cd ${SRC} | 
|---|
| 12 | LOG=procps-native.log | 
|---|
| 13 |  | 
|---|
| 14 | SELF=`basename ${0}` | 
|---|
| 15 | set_buildenv | 
|---|
| 16 | set_libdirname | 
|---|
| 17 | setup_multiarch | 
|---|
| 18 |  | 
|---|
| 19 | # TODO: look into how this is handled on non x86_64 and non multiarch | 
|---|
| 20 | if [ ! "${libdirname}" = "lib" ]; then | 
|---|
| 21 | extra_makeopts="lib64=${libdirname}" | 
|---|
| 22 | fi | 
|---|
| 23 |  | 
|---|
| 24 | unpack_tarball procps-${PROCPS_VER} && | 
|---|
| 25 | cd ${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 |  | 
|---|
| 39 | test -f Makefile-ORIG || | 
|---|
| 40 | cp Makefile Makefile-ORIG | 
|---|
| 41 |  | 
|---|
| 42 | LDFLAGS="-s" | 
|---|
| 43 |  | 
|---|
| 44 | sed -e "s/LDFLAGS :=.*/& ${LDFLAGS}/" \ | 
|---|
| 45 | -e "s@^\(lib64.*:= \).*@\1${libdirname}@g" \ | 
|---|
| 46 | Makefile-ORIG > Makefile | 
|---|
| 47 |  | 
|---|
| 48 | max_log_init Procps ${PROCPS_VER} "native (shared)" ${BUILDLOGS} ${LOG} | 
|---|
| 49 | make CC="${CC-gcc} ${ARCH_CFLAGS}" \ | 
|---|
| 50 | CFLAGS="-O2 -pipe ${TGT_CFLAGS}" ${extra_makeopts} \ | 
|---|
| 51 | >> ${LOGFILE} 2>&1 && | 
|---|
| 52 | echo " o Build OK" && | 
|---|
| 53 |  | 
|---|
| 54 | min_log_init ${INSTLOGS} && | 
|---|
| 55 | make CC="${CC-gcc} ${ARCH_CFLAGS}" ${extra_makeopts} install \ | 
|---|
| 56 | >> ${LOGFILE} 2>&1 && | 
|---|
| 57 | echo " o ALL OK" || barf | 
|---|
| 58 |  | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.