linphone: SDL and configure ?
Luigi Rizzo
rizzo at icir.org
Fri Feb 16 01:26:12 UTC 2007
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
More information about the freebsd-ports
mailing list