From: jesusc Date: Sun, 27 Jul 2003 00:13:40 +0000 (+0000) Subject: Do not search for crt0.o when --nostdlib X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=3bc26053f2b7b6fe2765d44e7d72bc266312f7d2;p=fw%2Fsdcc Do not search for crt0.o when --nostdlib git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2778 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index b457b2f1..f0eac4ec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2003-07-26 Jesus Calvino-Fraga + + *src/SDCCmain.c: do not search for crt0.o when using --nostdlib + 2003-07-24 Bernhard Held * src/SDCCicode.c (operandOperation): really fixed problem with bitops diff --git a/src/SDCCmain.c b/src/SDCCmain.c index 9403075a..ea98540c 100644 --- a/src/SDCCmain.c +++ b/src/SDCCmain.c @@ -1483,7 +1483,8 @@ linkEdit (char **envp) /*For the z80 and gbz80 ports, try to find where crt0.o is... It is very important for this file to be first on the linking proccess so the areas are set in the correct order, expecially _GSINIT*/ - if ((TARGET_IS_Z80 || TARGET_IS_GBZ80) && !options.no_std_crt0) /*For the z80, gbz80*/ + if ((TARGET_IS_Z80 || TARGET_IS_GBZ80) && + !options.no_std_crt0 && !options.nostdlib) /*For the z80, gbz80*/ { char crt0path[PATH_MAX]; FILE * crt0fp;