[klibc][kgcc] Undef 'linux' and define 'kolibri'

git-svn-id: svn://kolibrios.org@8636 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
maxcodehack 2021-03-04 19:46:14 +00:00
parent c1e6562f35
commit c0a1d61a57
2 changed files with 3 additions and 2 deletions

View File

@ -19,6 +19,7 @@ fi
# GCC Flags for KolibriOS
FLAGS="-c -m32 -nostdinc -fno-common -fno-builtin -fno-leading-underscore -fno-pie -fno-stack-protector -fno-stack-check -mpreferred-stack-boundary=2"
KOS_PLATFORM="-Ulinux -U__linux -U__linux__ -U__gnu_linux__ -U__unix__ -U__unix -Uunix -Dkolibri -D__kolibri -D__kolibri__"
# And, execute gcc:
gcc $FLAGS -I $KLIBC/source/include $*
gcc $FLAGS $KOS_PLATFORM -I$KLIBC/source/include $*