build: stripped --internal arg from glib-genmarshal
authorNicola Fontana <ntd@entidi.it>
Fri, 5 Apr 2013 13:31:25 +0000 (5 15:31 +0200)
committerNicola Fontana <ntd@entidi.it>
Fri, 5 Apr 2013 13:31:25 +0000 (5 15:31 +0200)
On CentOS 5 (a fairly old GNU/Linux dist), the --internal flag of
glib-genmarshal generates the following error while linking:

/usr/bin/ld: .libs/libadg_1_la-adg-container.o: relocation R_X86_64_PC32
against `adg_marshal_VOID__OBJECT' can not be used when making a shared
object; recompile with -fPIC

configure.ac

index d88c8f1..bc66763 100644 (file)
@@ -129,13 +129,6 @@ AC_CONFIG_COMMANDS([default],
 # Check for required packages
 
 PKG_CHECK_MODULES([GLIB],[glib-2.0])
-
-AC_MSG_CHECKING([if glib-genmarshal supports --internal])
-AS_IF([$PKG_CONFIG --atleast-version 2.13.0 glib-2.0],
-      [AC_MSG_RESULT([yes])
-       GLIB_GENMARSHAL="$GLIB_GENMARSHAL --internal"],
-      [AC_MSG_RESULT([no])])
-
 PKG_CHECK_MODULES([GOBJECT],[gobject-2.0 >= ]gobject_prereq)
 PKG_CHECK_MODULES([CAIRO],[cairo >= ]cairo_prereq)
 PKG_CHECK_MODULES([CAIRO_GOBJECT],[cairo-gobject],