[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Pkg-fonts-devel] Bug#677671: grcompiler: fails to build with ld --as-needed

Package: grcompiler
Version: 4.2~pre6-1
Severity: wishlist
Tags: patch

grcompiler fails to build with ld --as-needed
this flag requires libraries to be placed after objects needing
their symbols.
this is due to configure.ac putting libraries in the LDFLAGS
the LIBS variable is supposed to be used for libraries

see the buildlog in ubuntu:

attached a patch paching configure and configure.am
the former can be dropped when you regenerate the autotools

-- System Information:
Debian Release: wheezy/sid
  APT prefers oneiric-updates
  APT policy: (500, 'oneiric-updates'), (500, 'oneiric-security'), (500, 'oneiric'), (100, 'oneiric-backports')
Architecture: i386 (i686)

Kernel: Linux 3.0.0-21-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Index: grcompiler-4.2~pre6/configure.ac
--- grcompiler-4.2~pre6.orig/configure.ac	2012-06-06 09:22:12.000000000 +0000
+++ grcompiler-4.2~pre6/configure.ac	2012-06-15 21:10:42.671513222 +0000
@@ -57,7 +57,7 @@
 if test "$ICU_CONFIG" == no; then
     AC_MSG_FAILURE([Could not find icu-config])
-    LDFLAGS="$LDFLAGS `$ICU_CONFIG --ldflags-libsonly`"
+    LIBS="$LIBS `$ICU_CONFIG --ldflags-libsonly`"
 # Checks for header files.
Index: grcompiler-4.2~pre6/configure
--- grcompiler-4.2~pre6.orig/configure	2012-06-06 09:22:40.000000000 +0000
+++ grcompiler-4.2~pre6/configure	2012-06-15 21:11:20.535513436 +0000
@@ -5676,7 +5676,7 @@
 as_fn_error "Could not find icu-config
 See \`config.log' for more details." "$LINENO" 5; }
-    LDFLAGS="$LDFLAGS `$ICU_CONFIG --ldflags-libsonly`"
+    LIBS="$LIBS `$ICU_CONFIG --ldflags-libsonly`"
 # Checks for header files.

Reply to: