Summary: | ghostscript-gpl-8.60 fails to compile on 64bit linux | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Timo Gurr <timo.gurr> |
Component: | Build Process | Assignee: | Hin-Tak Leung <htl10> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aacid, htl10, jean-pierre.vial, joe |
Priority: | P4 | ||
Version: | 8.60 | ||
Hardware: | Other | ||
OS: | Linux | ||
Customer: | Word Size: | --- | |
Attachments: |
ghostscript-fPIC-64bit.patch
ghostscript-fPIC-64bit.patch |
Description
Timo Gurr
2007-08-08 03:12:26 UTC
Created attachment 3268 [details]
ghostscript-fPIC-64bit.patch
While I am aware of the need of the extra -fPIC occasionally in 64-bit compilation, I don't think the place where the submitted patch modified is the appropriate place... the appropriate place is probably in the configure script. Uh, I should have looked at the configure script before. Many thanks for your suggestion! I attached a working configure patch, but I also discovered that I can pass --enable-dynamic to configure to activate -fPIC. So what is the preffered way to handle this? Created attachment 3273 [details]
ghostscript-fPIC-64bit.patch
I get it to work by adding "-fPIC" to the general CFLAGS: CFLAGS="$CFLAGS -fPIC" ./configure ... *** Bug 689527 has been marked as a duplicate of this bug. *** *** Bug 689575 has been marked as a duplicate of this bug. *** *** Bug 689834 has been marked as a duplicate of this bug. *** Grabbing a Ralph's bugs. Both "./configure --enable-dynamic && make so" and "ln -s base/unix-gcc.mak makefile && make so" are documented. (I updated the documentation in r11253 for the former). The latter has not been working for a while but a few commits leading up to r11258 makes it work again. (In reply to comment #10) > Both > "./configure --enable-dynamic && make so" it works fine for me on the SVN version (21/05/2010) on Suse Linux 11.2 X86_64 (the release 8.71 failed on "make so" even with both --enable-dynamic as configure option and an environment variable CFLAGS="-fPIC") |