mk-standalone

standalone mk from 9base
git clone git://git.evenfri.xyz/mk-standalone.git
Log | Files | Refs | README

cc (387B)


      1 #!/bin/sh
      2 
      3 global_flags="-c -Wall -Wextra"
      4 flags="$global_flags"
      5 
      6 flags="$flags $addedly_cc_flags"
      7 
      8 if [ ! -z "$not_use_libc" ]; then
      9   inc=$(/usr/bin/cc -print-file-name=include)
     10 
     11   flags="$flags 
     12     -fstack-protector-all \
     13     -mstack-protector-guard=global \
     14     -nostdlib \
     15     -nostdinc \
     16     -ffreestanding \
     17     -fno-builtin \
     18     -isystem $inc"
     19 fi
     20 
     21 exec /usr/bin/cc $flags "$@"