kolibrios/contrib/kolibri-libc/linuxtools/kld
Magomed Kostoev (mkostoevr) 1f4d74f500 Relocate kolibri-libc from GitHub
git-svn-id: svn://kolibrios.org@8622 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-03-02 17:58:11 +00:00

25 lines
415 B
Bash

#!/bin/bash
# Copyright maxcodehack, 2021
# ld options for build for KolibriOS
# We start w/o param?
if [ -z "$*" ]
then
echo "kld: no input files"
exit 1
fi
# KLIBC variable exists?
if [ -z "$KLIBC" ]
then
echo "kld: KLIBC variable not set"
exit 1
fi
# LD Flags for KolibriOS
FLAGS="-m elf_i386 -nostdlib"
# And, execute ld:
ld $FLAGS -L $KLIBC/bin/lib -T $KLIBC/tests/static.lds $KLIBC/bin/lib/crt0.o $*