Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!randvax!segue!jim From: jim@segue.segue.com (Jim Balter) Newsgroups: comp.unix.sysv386 Subject: Re: POSIX and ISC 2.2.x -- and gcc? Message-ID: <7308@segue.segue.com> Date: 27 Apr 91 08:44:07 GMT References: <1991Apr14.193335.26288@ddsw1.MCS.COM> <7209@segue.segue.com> <544@jahangir.UUCP> Reply-To: jim@segue.segue.com (Jim Balter) Organization: Segue Software, Inc. - Santa Monica, CA. +1-213-453-2161 Lines: 18 In article <544@jahangir.UUCP> marc@jahangir.UUCP (Marc Rossner) writes: >In article <7209@segue.segue.com>, jim@segue.segue.com (Jim Balter) writes: >> In article <7193@segue.segue.com> I write: >> >This doesn't turn on the kernel POSIX support. cc -Xp or OSTYPE=POSIX cc >> >or cc /lib/lcrtp.o or doing the system call that the latter does will. >> >> My editor or my fingers hiccuped. That should have been /lib/pcrt1.o > > >Maybe my question belongs better on a gnu newsgroup, but how can I get my >gcc (1.39) to get ld to link /lib/pcrt1.o in a similar fashion to cc -Xp? gcc 1.39 has -posix. With earlier versions, you can do gcc -nostdlib /lib/crtp1.o ... -lcposix -lc (Yes, I got this wrong twice. Sigh. pcrt1.o is for profiling. But crtp1.o is right for posix. I promise.)