Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Feb 2007 17:26:12 -0800
From:      Luigi Rizzo <rizzo@icir.org>
To:        ports@freebsd.org
Subject:   linphone: SDL and configure ?
Message-ID:  <20070215172612.A96845@xorpc.icir.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070215172612.A96845>