From patchwork Sat Dec 8 22:27:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ross X-Patchwork-Id: 11340 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id BC01D44E2C0 for ; Sun, 9 Dec 2018 00:28:14 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1007468A978; Sun, 9 Dec 2018 00:28:05 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mx.sdf.org (mx.sdf.org [205.166.94.20]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9EBC168A955 for ; Sun, 9 Dec 2018 00:27:58 +0200 (EET) Received: from 9eae56f79f6984d33772a580382871bf (pa49-199-234-222.pa.vic.optusnet.com.au [49.199.234.222]) (authenticated (128 bits)) by mx.sdf.org (8.15.2/8.14.5) with ESMTPSA id wB8MRHsk025793 (using TLSv1.2 with cipher AES256-GCM-SHA384 (256 bits) verified NO) for ; Sat, 8 Dec 2018 22:27:24 GMT Date: Sun, 9 Dec 2018 09:27:54 +1100 From: Peter Ross To: ffmpeg-devel@ffmpeg.org Message-ID: MIME-Version: 1.0 User-Agent: Mutt/1.9.4 (2018-02-28) Subject: [FFmpeg-devel] [PATCH 1/2] configure: use custom allocator extralibs when testing memalign and posix_memalign X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" the memalign and posix_memalign tests currently fail when using a custom allocator, because configure does not include the custom allocator library. --- configure | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 026aee6b25..4d7b2b37c3 100755 --- a/configure +++ b/configure @@ -5852,20 +5852,23 @@ check_builtin gmtime_r time.h "time_t *time; struct tm *tm; gmtime_r(time, tm)" check_builtin localtime_r time.h "time_t *time; struct tm *tm; localtime_r(time, tm)" check_builtin x264_csp_bgr "stdint.h x264.h" "X264_CSP_BGR" +malloc_extralibs= case "$custom_allocator" in jemalloc) # jemalloc by default does not use a prefix require libjemalloc jemalloc/jemalloc.h malloc -ljemalloc + malloc_extralibs=-ljemalloc ;; tcmalloc) require_pkg_config libtcmalloc libtcmalloc gperftools/tcmalloc.h tc_malloc malloc_prefix=tc_ + malloc_extralibs=${libtcmalloc_extralibs} ;; esac check_func_headers malloc.h _aligned_malloc && enable aligned_malloc -check_func ${malloc_prefix}memalign && enable memalign -check_func ${malloc_prefix}posix_memalign && enable posix_memalign +check_func ${malloc_prefix}memalign ${malloc_extralibs} && enable memalign +check_func ${malloc_prefix}posix_memalign ${malloc_extralibs} && enable posix_memalign check_func access check_func_headers stdlib.h arc4random