Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!maverick.ksu.ksu.edu!news From: tar@hilbert.math.ksu.edu (Tim Ramsey) Newsgroups: comp.windows.x Subject: Problems compiling X11R4.12 with gcc 1.37.1 under SunOS 4.1 Message-ID: <1990Jul19.103451.14172@maverick.ksu.ksu.edu> Date: 19 Jul 90 10:34:51 GMT Sender: news@maverick.ksu.ksu.edu (The News Guru) Organization: Department of Mathematics, Kansas State University Lines: 27 I'm trying to take advantage of the promised speedups produced by compiling X11R4 "fixlevel" 12 on a Sun 3/80 running SunOS 4.1. I'm using gcc 1.37.1. gcc doesn't seem to grok the -pic option (wrapping done by me): rm -f XAllowEv.o shared/XAllowEv.o gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -pic -c -DSHAREDCODE -DSUNSHLIB -O -I../../. -I. -I../../. -I../.././X11 XAllowEv.c gcc: unrecognized option `-pic' mv XAllowEv.o shared/XAllowEv.o gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -c -DSUNSHLIB -O -I../.. /. -I. -I../../. -I../.././X11 XAllowEv.c It compiles just fine the second time, but barfs the first time on "-pic". What am I doing wrong? I really don't want to give up shared X libraries. Looking at the texinfo file for gcc doesn't offer much hope; it doesn't mention support of -pic. Please respond by email; I'll summarize to this group if asked. Thanks in advance for any help. Tim -- Tim Ramsey (tar@hilbert.math.ksu.edu) Dept. of Mathematics, Kansas State University, Manhattan KS 66506 Phone: (913) 532-6750 (voice) 2-7004 (FAX) When all you have is a hammer, everything looks like a nail.