summaryrefslogtreecommitdiff
path: root/strata/build-essential/musl.morph
blob: a5436d68c154320d7496d59b6c76041d8ff289cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: musl
kind: chunk
configure-commands:
- ./configure --prefix="$PREFIX"
build-commands:
- make
install-commands:
- make install
- install -d "$DESTDIR$PREFIX/bin" ; cd "$DESTDIR$PREFIX/bin" ; ln -s ../../lib/ld-musl* ldd
- |
  case "$MORPH_ARCH" in
      armv7b|armv7l|armv7lhf)
          ARCH="arm" ;;
      x86_32)                                     
          ARCH="i386" ;;             
      x86_64)                        
          ARCH="x86_64" ;;                                                
      ppc64)              
          ARCH="powerpc" ;;
      mips*)                                                                         
          ARCH="mips" ;;                          
      *)       
          echo "Error: unsupported Morph architecture: $MORPH_ARCH" >&2
          exit 1 
  esac
  echo "/lib:/lib64:/usr/lib64:/usr/lib" >> "ld-musl-$ARCH.path"
  install -d "$DESTDIR/etc"
  install "ld-musl-$ARCH.path" "$DESTDIR/etc/ld-musl-$ARCH.path"