diff options
author | Gilles Dartiguelongue <eva@gentoo.org> | 2009-01-31 18:35:57 +0000 |
---|---|---|
committer | Gilles Dartiguelongue <eva@gentoo.org> | 2009-01-31 18:35:57 +0000 |
commit | 0b7f4b35826af0372554d2e3a88f4d779bc4650d (patch) | |
tree | d8a4a1ed97bd11444e415ed7dfb3dcf80eb616c1 /gnome-extra/gnome-swallow/files | |
parent | Version bump and add missing dependency to ant-core. (diff) | |
download | historical-0b7f4b35826af0372554d2e3a88f4d779bc4650d.tar.gz historical-0b7f4b35826af0372554d2e3a88f4d779bc4650d.tar.bz2 historical-0b7f4b35826af0372554d2e3a88f4d779bc4650d.zip |
Fix --as-needed compilation, bug #247521.
Package-Manager: portage-2.2_rc23/cvs/Linux x86_64
Diffstat (limited to 'gnome-extra/gnome-swallow/files')
-rw-r--r-- | gnome-extra/gnome-swallow/files/gnome-swallow-1.2-as-needed.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/gnome-extra/gnome-swallow/files/gnome-swallow-1.2-as-needed.patch b/gnome-extra/gnome-swallow/files/gnome-swallow-1.2-as-needed.patch new file mode 100644 index 000000000000..13ea1a1e27ba --- /dev/null +++ b/gnome-extra/gnome-swallow/files/gnome-swallow-1.2-as-needed.patch @@ -0,0 +1,48 @@ +--- a/configure.ac 2009-01-31 20:18:50.000000000 +0100 ++++ b/configure.ac 2009-01-31 20:20:55.000000000 +0100 +@@ -7,19 +7,10 @@ + AC_LANG(C) + AC_PROG_CC + +-AC_PATH_PROG(PKG_CONFIG, pkg-config, , ) +- +-if test -z "$PKG_CONFIG"; then +- AC_MSG_ERROR([pkg-config is not installed. I will not be able to find the GNOME headers.]) +-fi +- +-if ! $PKG_CONFIG --exists libpanelapplet-2.0; then +- AC_MSG_ERROR([pkg-config does not know about libpanelapplet-2.0. +-Do you have the development packages for the GNOME 2.0 Panel Applet library installed? +-(the Debian package is 'libpanel-applet2-dev')]) +-fi +- +-AC_SUBST(PKG_CONFIG) ++PKG_PROG_PKG_CONFIG ++PKG_CHECK_MODULES(PANEL, [libpanelapplet-2.0]) ++AC_SUBST(PANEL_CFLAGS) ++AC_SUBST(PANEL_LIBS) + + AC_CONFIG_FILES([Makefile]) +-AC_OUTPUT +\ Pas de fin de ligne à la fin du fichier. ++AC_OUTPUT +--- a/Makefile.am 2009-01-31 20:21:02.000000000 +0100 ++++ b/Makefile.am 2009-01-31 20:21:30.000000000 +0100 +@@ -1,15 +1,14 @@ + paneldir = $(prefix)/lib/gnome-panel + serversdir = $(prefix)/lib/bonobo/servers +-docdir = $(prefix)/share/doc/gnome-swallow + + dist_doc_DATA = README + dist_servers_DATA = GNOME_Swallow.server + + panel_PROGRAMS = gnome_swallow + +-INCLUDES = `@PKG_CONFIG@ --cflags libpanelapplet-2.0` ++INCLUDES = ${PANEL_CFLAGS} + + gnome_swallow_SOURCES = gnome-swallow.c +-gnome_swallow_LDFLAGS = `@PKG_CONFIG@ --libs libpanelapplet-2.0` ++gnome_swallow_LDADD = ${PANEL_LIBS} + + EXTRA_DIST = debian/dirs debian/control debian/changelog debian/copyright debian/install debian/rules |