scc

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

sysld.musl.h (390B)


      1 /* configure below your system linker command line */
      2 
      3 #define GCCLIBPATH "/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2/"
      4 
      5 char *ldcmd[] = {
      6 	"-static",
      7 	"-z","nodefaultlib",
      8         %NOPIE%
      9 	"-o","%o",
     10 	"-L","%p/lib/",
     11 	"-L",GCCLIBPATH,
     12 	"%p/lib/Scrt1.o",
     13 	"%p/lib/crti.o",
     14 	GCCLIBPATH "crtbeginS.o",
     15 	"%c",
     16 	GCCLIBPATH "crtendS.o",
     17 	"%p/lib/crtn.o",
     18 	"-lc",
     19 	"-lgcc",
     20 	"-lgcc_eh",
     21 	NULL
     22 };