diff --git a/programs/develop/libraries/menuetlibc/linuxtools/mgcc.c b/programs/develop/libraries/menuetlibc/linuxtools/mgcc.c index a907ebe2a9..11ae4fd62a 100755 --- a/programs/develop/libraries/menuetlibc/linuxtools/mgcc.c +++ b/programs/develop/libraries/menuetlibc/linuxtools/mgcc.c @@ -10,7 +10,7 @@ char buf[32768]; char * __dev_env; #endif -#define __GNUC__ 3 + // version-specific switches #if __GNUC__ >= 4 && __GNUC_MINOR__ >= 4 #define GCCOPT "-fno-stack-protector -mincoming-stack-boundary=2 " @@ -43,13 +43,13 @@ int main(int argc,char * argv[]) return 1; } #if (HAS_DEVENV==1) - sprintf(buf,"win32-gcc -c %s -o %s -Os -nostdinc -fno-builtin -I/dev/env/MENUETDEV/include -fno-pic " + sprintf(buf,"gcc -c %s -o %s -Os -nostdinc -fno-builtin -I/dev/env/MENUETDEV/include -fno-pic " GCCOPT "-mno-stack-arg-probe -mpreferred-stack-boundary=2 " "-fno-common -DMENUETDEV='\"/dev/env/MENUETDEV\"' " "-D__DEV_CONFIG_H='' -D__MENUETOS__ ",argv[1],argv[2]); #else - sprintf(buf,"win32-gcc -c %s -o %s -Os -nostdinc -fno-builtin -I%s/include -fno-pic " + sprintf(buf,"gcc -c %s -o %s -Os -nostdinc -fno-builtin -I%s/include -fno-pic " GCCOPT "-mno-stack-arg-probe -mpreferred-stack-boundary=2 " "-fno-common -DMENUETDEV='\"%s\"' "