Rev 8622 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
8622 | Boppan | 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: |
||
8625 | turbocat | 24 | ld $FLAGS -L $KLIBC/lib -T $KLIBC/static.lds $KLIBC/lib/crt0.o $* |