This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: egcs-980221: build fails for shared libstdc++ on HP-UX 10.20



  In message <199802260722.IAA00538@saturn.s-direktnet.de>you write:
  >  > Well, I'll give it a spin myself in an empty directory.
  > 
  > Yep, this is what I'll be doing next, too.
It definitely fails for a build in a "clean" source directory.  Looking
more closely at it -- -fPIC was never passed to the compiler when building
the component .o files or when actually creating the shared library:

if [ x"yes" = xyes ]; then \
  /var/tmp/egcs/gcc/xgcc -B/var/tmp/egcs/gcc/ -c -g -O2 -fno-implicit-templates -I. -I./stl -I../libio -I./../libio -nostdinc++   -DLD \
    `for N in MAIN ADDCC ADDCF ADDFC SUBCC SUBCF SUBFC MULCC MULCF MULFC DIVCC DIVCF DIVFC PLUS MINUS EQCC EQCF EQFC NECC NECF NEFC ABS ARG POLAR CONJ NORM COS COSH EXP LOG POWCC POWCF POWCI POWFC SIN SINH SQRT; do echo " -D${N}"; done` \
    ./cinst.cc -o pic/ldcomplex.o; \
else true ; fi
/var/tmp/egcs/gcc/xgcc -B/var/tmp/egcs/gcc/ -c -g -O2 -fno-implicit-templates -I. -I./stl -I../libio -I./../libio -nostdinc++  -DLD `for N in MAIN ADDCC ADDCF ADDFC SUBCC SUBCF SUBFC MULCC MULCF MULFC DIVCC DIVCF DIVFC PLUS MINUS EQCC EQCF EQFC NECC NECF NEFC ABS ARG POLAR CONJ NORM COS COSH EXP LOG POWCC POWCF POWCI POWFC SIN SINH SQRT; do echo " -D${N}"; done` \
  ./cinst.cc -o ldcomplex.o

So we need to fix this..

I'll try a build outside of the source tree overnight.

jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]