Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Baruch Siach <baruch@tkos.co.il>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] SDL_image: fix runtime libjpeg failure
Date: Mon, 23 Nov 2009 08:09:22 +0200	[thread overview]
Message-ID: <20091123060922.GA6897@jasper.tkos.co.il> (raw)
In-Reply-To: <20091109130709.GF26599@jasper.tkos.co.il>

Hi Buildroot list,

Ping?

Should I open a Bugzilla entry to have this issue handled?
Is there a better solutions?

baruch

On Mon, Nov 09, 2009 at 03:07:09PM +0200, Baruch Siach wrote:
> From d86e3115e0beaf281e791a78a5e73bac69f14128 Mon Sep 17 00:00:00 2001
> From: Baruch Siach <baruch@tkos.co.il>
> Date: Mon, 9 Nov 2009 14:53:30 +0200
> Subject: [PATCH] SDL_image: fix runtime libjpeg failure
> 
> By default SDL_image loads libjpeg at runtime on-demand. The find_lib routine
> in the configure script of SLD_image searches the /usr/lib directory of the
> host machine to find the file name of the jpeg library.
> 
> When the host on which Buildroot is being built contains newer version of
> libjpeg (e.g. libjpeg7), the configure script incorrectly uses its file name.
> The result is a runtime failure to load libjpeg.
> 
> Fix this by disabling runtime load of libjpeg.
> 
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> ---
>  package/sdl_image/sdl_image.mk |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/package/sdl_image/sdl_image.mk b/package/sdl_image/sdl_image.mk
> index 382c0b1..c12ae8e 100644
> --- a/package/sdl_image/sdl_image.mk
> +++ b/package/sdl_image/sdl_image.mk
> @@ -14,6 +14,7 @@ SDL_IMAGE_CONF_OPT:=--with-sdl-prefix=$(STAGING_DIR)/usr \
>         --with-sdl-exec-prefix=$(STAGING_DIR)/usr \
>         --disable-sdltest \
>         --disable-static \
> +       --disable-jpg-shared \
>         --enable-bmp=$(if $(BR2_PACKAGE_SDL_IMAGE_BMP),yes,no) \
>         --enable-gif=$(if $(BR2_PACKAGE_SDL_IMAGE_GIF),yes,no) \
>         --enable-jpg=$(if $(BR2_PACKAGE_SDL_IMAGE_JPEG),yes,no) \
> -- 
> 1.6.5

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

  reply	other threads:[~2009-11-23  6:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-09 13:07 [Buildroot] [PATCH] SDL_image: fix runtime libjpeg failure Baruch Siach
2009-11-23  6:09 ` Baruch Siach [this message]
2009-11-23 22:02   ` Peter Korsgaard

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=20091123060922.GA6897@jasper.tkos.co.il \
    --to=baruch@tkos.co.il \
    --cc=buildroot@busybox.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox