All of lore.kernel.org
 help / color / mirror / Atom feed
From: Koen Kooi <k.kooi@student.utwente.nl>
To: openembedded-devel@openembedded.org
Subject: Re: [STABLE][PATCH] libmng: use LDFLAGS (fixes QA error)
Date: Mon, 06 Apr 2009 16:01:54 +0200	[thread overview]
Message-ID: <grd20i$rdt$2@ger.gmane.org> (raw)
In-Reply-To: <1239020324-6909-1-git-send-email-jeremy.laine@bolloretelecom.eu>

On 06-04-09 14:18, Jeremy Lainé wrote:
> From: Jeremy Lainé<jeremy.laine@m4x.org>

Acked-by: Koen Kooi <koen@openembedded.org>

>
>
> Signed-off-by: Jeremy Lainé<jeremy.laine@m4x.org>
> ---
>   recipes/libmng/libmng/ldflags.patch |   12 ++++++++++++
>   recipes/libmng/libmng_1.0.8.bb      |    9 +++++----
>   2 files changed, 17 insertions(+), 4 deletions(-)
>   create mode 100644 recipes/libmng/libmng/ldflags.patch
>
> diff --git a/recipes/libmng/libmng/ldflags.patch b/recipes/libmng/libmng/ldflags.patch
> new file mode 100644
> index 0000000..078f552
> --- /dev/null
> +++ b/recipes/libmng/libmng/ldflags.patch
> @@ -0,0 +1,12 @@
> +diff -urN libmng-1.0.8.orig/makefiles/makefile.linux libmng-1.0.8/makefiles/makefile.linux
> +--- libmng-1.0.8.orig/makefiles/makefile.linux	2004-08-06 07:17:40.000000000 +0000
> ++++ libmng-1.0.8/makefiles/makefile.linux	2009-04-06 11:49:45.000000000 +0000
> +@@ -105,7 +105,7 @@
> + libmng.so.$(MNGVER): $(OBJSDLL)
> + #	$(CC) -shared -Wl,-soname,libmng.so.$(MNGMAJ) -o libmng.so.$(MNGVER) \
> + #	$(OBJSDLL) -L$(ZLIBLIB) -L$(JPEGLIB) -L$(LCMSLIB) -lz -lm -lc
> +-	$(CC) -shared -Wl,-soname,libmng.so.$(MNGMAJ) -o libmng.so.$(MNGVER) \
> ++	$(CC) $(LDFLAGS) -shared -Wl,-soname,libmng.so.$(MNGMAJ) -o libmng.so.$(MNGVER) \
> + 	$(OBJSDLL) -L$(ZLIBLIB) -L$(JPEGLIB) -ljpeg -L$(LCMSLIB) -llcms \
> +     -lz -lm -lc
> +
> diff --git a/recipes/libmng/libmng_1.0.8.bb b/recipes/libmng/libmng_1.0.8.bb
> index 9619cf4..d737e33 100644
> --- a/recipes/libmng/libmng_1.0.8.bb
> +++ b/recipes/libmng/libmng_1.0.8.bb
> @@ -2,7 +2,10 @@ DESCRIPTION = "MNG Library"
>   SECTION = "libs"
>   DEPENDS = "zlib jpeg lcms"
>   LICENSE = "libmng"
> -SRC_URI = "${SOURCEFORGE_MIRROR}/libmng/libmng-${PV}.tar.gz"
> +PR = "r1"
> +
> +SRC_URI = "${SOURCEFORGE_MIRROR}/libmng/libmng-${PV}.tar.gz \
> +           file://ldflags.patch;patch=1"
>
>   inherit pkgconfig
>
> @@ -10,13 +13,12 @@ EXTRA_OEMAKE_append = " ZLIBINC=${STAGING_INCDIR} ZLIBLIB=${STAGING_LIBDIR} \
>   			JPEGINC= JPEGLIB= LCMSINC= LCMSLIB="
>
>   do_compile() {
> -	unset LDFLAGS
>   	oe_runmake -f makefiles/makefile.linux
>   }
>
>   do_stage() {
>   	oe_libinstall -so libmng ${STAGING_LIBDIR}
> -        install -m 0644 ${S}/libmng.h ${STAGING_INCDIR}/
> +	install -m 0644 ${S}/libmng.h ${STAGING_INCDIR}/
>   	install -m 0644 ${S}/libmng_conf.h ${STAGING_INCDIR}/
>   	install -m 0644 ${S}/libmng_types.h ${STAGING_INCDIR}/
>   }
> @@ -24,7 +26,6 @@ do_stage() {
>   do_install() {
>   	install -d ${D}${bindir} ${D}${mandir} \
>   		   ${D}${libdir} ${D}${includedir}
> -	unset LDFLAGS
>   	oe_runmake -f makefiles/makefile.linux install \
>   	INCPATH="${D}${includedir}" LIBPATH="${D}${libdir}" prefix=${prefix}
>   }





      reply	other threads:[~2009-04-06 14:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-06 12:18 [STABLE][PATCH] libmng: use LDFLAGS (fixes QA error) Jeremy Lainé
2009-04-06 14:01 ` Koen Kooi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='grd20i$rdt$2@ger.gmane.org' \
    --to=k.kooi@student.utwente.nl \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=openembedded-devel@openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.