From owner-freebsd-ports@FreeBSD.ORG Fri Feb 16 01:26:12 2007 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9D75F16A400 for ; Fri, 16 Feb 2007 01:26:12 +0000 (UTC) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.freebsd.org (Postfix) with ESMTP id 9239C13C4A5 for ; Fri, 16 Feb 2007 01:26:12 +0000 (UTC) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.11/8.13.6) with ESMTP id l1G1QCLS097117 for ; Thu, 15 Feb 2007 17:26:12 -0800 (PST) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.11/8.12.3/Submit) id l1G1QCKu097116 for ports@freebsd.org; Thu, 15 Feb 2007 17:26:12 -0800 (PST) (envelope-from rizzo) Date: Thu, 15 Feb 2007 17:26:12 -0800 From: Luigi Rizzo To: ports@freebsd.org Message-ID: <20070215172612.A96845@xorpc.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Cc: Subject: linphone: SDL and configure ? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Feb 2007 01:26:12 -0000 This is related to the linphone-base port, which has its own problems, but still... I am trying to enable video support for it, and the first problem is that its configure script does not detect SDL unless i put an additiona -lpthread in CFLAGS (because libSDL requires some pthread functions). The following patch does the job: USE_AUTOTOOLS= libtool:15 LIBTOOLFILES= configure oRTP/configure -CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" +CONFIGURE_ENV= CFLAGS="${CFLAGS} -lpthread" CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" CONFIGURE_ARGS= --disable-ipv6 --disable-gtk-doc --enable-gnome_ui=no \ --disable-ewarning --without-ilbc --disable-strict \ --with-speex=${LOCALBASE} --with-osip=${LOCALBASE} \ + --enable-video --with-sdl=${LOCALBASE} \ --with-html-dir=${DOCSDIR} but if i just add -lpthread to LDFLAGS the linking (during configure) fails. Any ideas why ? cheers luigi