X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com Date: Sat, 23 May 2015 12:48:51 +0300 From: "Eli Zaretskii (eliz AT gnu DOT org)" Subject: Re: ANNOUNCE: DJGPP 2.05 beta 1 In-reply-to: X-012-Sender: halo1 AT inter DOT net DOT il To: djgpp AT delorie DOT com Message-id: <83617j39q4.fsf@gnu.org> References: <201505042003 DOT t44K3odg011007 AT delorie DOT com> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Date: Sat, 23 May 2015 12:24:08 +0300 > From: "Ozkan Sezer (sezeroz AT gmail DOT com)" > > Using an unmodified 2.03-based toolchain/djgpp environment, > current cvs fails like the following: > > ../../../lib/libc.a(crt1.o)(.text+0x25d):crt1.c: undefined reference > to `_environ' > ../../../lib/libc.a(crt1.o)(.text+0x2c4):crt1.c: undefined reference > to `_environ' > ../../../lib/libc.a(crt1.o)(.text+0x2d0):crt1.c: undefined reference > to `_environ' > ../../../lib/libc.a(crt1.o)(.text+0x2f7):crt1.c: undefined reference > to `_environ' > ../../../lib/libc.a(crt1.o)(.text+0x516):crt1.c: undefined reference > to `_environ' > ../../../lib/libc.a(spawnvp.o)(.text+0x11):spawnvp.c: more undefined > references to `_environ' follow > make.exe[3]: *** [../../../bin/symify.exe] Error 1 > > However, if I specify djgpp.djl on the make line, like: > make DJGPP_DJL=c:/v205/lib/djgpp.djl > ... then build happily succeeds. > > Why are we using the toolchain-provided linker script instead > of source tree-provided one? If this was an oversight, I can > easily change this. I'm guessing that no one envisioned the linker script will be ever modified. Using the script from the source tree is TRT, IMO. Thanks.