Back in August of 2002, I reported a problem trying to compile STLPort.
Ulrich Weigand said that the problem was because the components of
libc_nonshared.a were being compiled with -fpic instead of -fPIC.  That is
still happening, 15 months later (this time trying to compile Guile).  Here
is a patch to glibc-2.3.2/sysdeps/s390/s390-32/Makefile that corrects the
problem (there should not be any whitespace problems with this diff):
- - - begin - - -
--- glibc-2.3.2/sysdeps/s390/s390-32/Makefile.orig      2002-09-19
02:42:09.000000000 -0400
+++ glibc-2.3.2/sysdeps/s390/s390-32/Makefile   2003-12-15
13:39:13.000000000 -0500
@@ -1,4 +1,4 @@
-pic-ccflag = -fpic
+pic-ccflag = -fPIC

 ifeq ($(subdir),gmon)
 sysdep_routines += s390-mcount
- - - end - - -

I don't know, and cannot test, if a similar fix needs to be applied to
glibc-2.3.2/sysdeps/s390/s390-64/Makefile or not.  Someone who is running on
s390x might be able to check it out and let the rest of us know.

If this is _not_ the correct fix, I would appreciate knowing what is, so
that I can modify my build scripts appropriately.

http://www2.marist.edu/htbin/wlvtype?LINUX-VM.29321
http://www2.marist.edu/htbin/wlvtype?LINUX-VM.29326


Thanks,

Mark Post

Reply via email to