hi,
   GCC needs the fPIC flag when compiling on 64 bit architectures. It
otherwise causes problems with linking podofo with other projects (for
example Calibre)

The error is "relocation truncated to fit: R_X86_64_32S". It is
because perhaps a symbol needed relocation before being usable used at
a place where that is not possible.

-regards
Sandeep Srinivasa

Patch:

--- CMakeLists.txt      2009-07-27 16:25:27.077996183 +0530
+++ ../tmp/podofo-0.7.0/CMakeLists.txt  2008-12-30 17:46:23.000000000 +0530
@@ -44,15 +44,6 @@
 ENDIF(WANT_LIB64)
 MESSAGE("Will install libraries to ${CMAKE_INSTALL_PREFIX}/${LIBDIRNAME}")

-
-IF(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64")
-ADD_DEFINITIONS(
-            -fPIC
-            )
-ENDIF(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64")
-
-
-
 # CMake 2.5 added the CLEAN_DIRECT_OUTPUT property that we require
 # to generate both a shared and static library in the same directory.
 # On older versons we can can build EITHER a shared OR static library

------------------------------------------------------------------------------
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to