Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

  1. #!/bin/bash
  2.  
  3. # Copyright maxcodehack, 2021
  4. # ld options for build for KolibriOS
  5.  
  6. # We start w/o param?
  7. if [ -z "$*" ]
  8. then
  9.         echo "kld: no input files"
  10.         exit 1
  11. fi
  12.  
  13. # KLIBC variable exists?
  14. if [ -z "$KLIBC" ]
  15. then
  16.         echo "kld: KLIBC variable not set"
  17.         exit 1
  18. fi
  19.  
  20. # LD Flags for KolibriOS
  21. FLAGS="-m elf_i386 -nostdlib"
  22.  
  23. # And, execute ld:
  24. ld $FLAGS -L $KLIBC/bin/lib -T $KLIBC/tests/static.lds $KLIBC/bin/lib/crt0.o $*
  25.