scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

sys-musl.h (738B)


      1 #define LDBIN "ld"
      2 #define ASBIN "as"
      3 #define QBEBIN "qbe"
      4 
      5 /* configure below your system linker command line */
      6 #define GCCLIBPATH "/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2/"
      7 
      8 /* configure below your standard sys include paths */
      9 char *sysincludes[] = {
     10 	LIBPREFIX "/include",
     11 	"%p/include/",
     12 	NULL
     13 };
     14 
     15 char *ldcmd[] = {
     16 	"-static",
     17 	"-z","nodefaultlib",
     18         %NOPIE%
     19 	"-o","%o",
     20 	"-L","%p/lib/",
     21 	"-L",GCCLIBPATH,
     22 	"-L",LIBPREFIX "/lib",
     23 	LIBPREFIX "/lib/Scrt1.o",
     24 	LIBPREFIX "/lib/crti.o",
     25 	GCCLIBPATH "/crtbeginS.o",
     26 	"%c",
     27 	GCCLIBPATH "/crtendS.o",
     28 	LIBPREFIX "/lib/crtn.o",
     29 	"-lc",
     30 	"-lgcc",
     31 	"-lgcc_eh",
     32 	NULL
     33 };
     34 
     35 /* configure below your system assembler command line */
     36 char *ascmd[] = {
     37         "-o", "%o",
     38         NULL
     39 };