marc@jahangir.UUCP (Marc Rossner) (04/24/91)
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? Sounds easy to change the gcc source code myself, but is there anything already present that I'm missing? In light of those articles about POSIX on ISC causing kernel panics I'm probably going to stay away from this in my real applications, but I was just curious to see some of the POSIX stuff (like "sigaction") actually work. Marc Rossner jahangir!marc@uunet.uu.net
scott@nancy.uucp (Scott Bartram) (04/25/91)
In article <544@jahangir.UUCP> marc@jahangir.UUCP (Marc Rossner) writes: >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? >Sounds easy to change the gcc source code myself, but is there anything >already present that I'm missing? The stock version of gcc 1.39 supports the '-posix' flag which changes the linked startup objects to the POSIX versions. >In light of those articles about POSIX on ISC causing kernel panics I'm >probably going to stay away from this in my real applications, but I was >just curious to see some of the POSIX stuff (like "sigaction") actually work. > >Marc Rossner >jahangir!marc@uunet.uu.net After applying the recently posted "namei" patch, I have been running POSIX bash-cwru without panics for over a week. scott -- ----------------------------------------------------------------------- Scott Bartram UUCP: uunet!nancy!scott Consultant VOICE: 703-968-6300 American Systems Corporation
jim@segue.segue.com (Jim Balter) (04/27/91)
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.)