From patchwork Sun Jul 12 19:57:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 1327595 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=crapouillou.net Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=crapouillou.net header.i=@crapouillou.net header.a=rsa-sha256 header.s=mail header.b=FBbKRk4Y; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4B4cy84hjVz9sR4 for ; Mon, 13 Jul 2020 05:57:36 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 5D27425488; Sun, 12 Jul 2020 19:57:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id U+J+pl61HxHF; Sun, 12 Jul 2020 19:57:31 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 27DDB203D3; Sun, 12 Jul 2020 19:57:31 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 7F7F31BF4E3 for ; Sun, 12 Jul 2020 19:57:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7B2E9889F8 for ; Sun, 12 Jul 2020 19:57:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mkxpKGiqvdLo for ; Sun, 12 Jul 2020 19:57:29 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from crapouillou.net (crapouillou.net [89.234.176.41]) by whitealder.osuosl.org (Postfix) with ESMTPS id CB80C888EE for ; Sun, 12 Jul 2020 19:57:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1594583839; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RoNLSH3D3YEwF9/xcNGHYSBgwEB5K/I8iZ+0I4ibPbs=; b=FBbKRk4YYXJadSBhetwrVh3fEXD0wGYQ8Hw+pe3V71uIfG8Re6QEb7LO4/QXrWEp7Xn5/T +lZPQ9O7IGV5hDnP7BTeqVorKn1LoeOwDXYjUqk477Ix7BEdnAEt2D2HWMP+/FdVrLUjpx O2AnKHJKumIkxrnPKaYKbEgKOVx5xAI= From: Paul Cercueil To: buildroot@busybox.net Date: Sun, 12 Jul 2020 21:57:12 +0200 Message-Id: <20200712195712.332139-2-paul@crapouillou.net> In-Reply-To: <20200712195712.332139-1-paul@crapouillou.net> References: <20200712195712.332139-1-paul@crapouillou.net> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/2] package/sdl_image: disable dynamic loading of libraries X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paul Cercueil , od@zcrc.me Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The thing with Buildroot, is that we know in advance what will be in the root filesystem. Therefore, we don't need SDL_image to probe for the presence of libpng, libjpeg, libtiff or libwebp and dynamically load them; SDL_image can be linked to them directly at compilation time. Signed-off-by: Paul Cercueil --- package/sdl_image/sdl_image.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/sdl_image/sdl_image.mk b/package/sdl_image/sdl_image.mk index 46a28799cf..95a03a3956 100644 --- a/package/sdl_image/sdl_image.mk +++ b/package/sdl_image/sdl_image.mk @@ -16,6 +16,10 @@ SDL_IMAGE_CONF_OPTS = \ --with-sdl-exec-prefix=$(STAGING_DIR)/usr \ --disable-sdltest \ --disable-static \ + --disable-jpg-shared \ + --disable-png-shared \ + --disable-tif-shared \ + --disable-webp-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) \