Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jun 2005 21:25:36 -0500
From:      Gunter Wambaugh <gunter@thewambaughs.net>
To:        ports@freebsd.org
Cc:        ports@freebsd.org
Subject:   FreeBSD Port: allegro-4.1.12_1 (patch)
Message-ID:  <60EED6AB-B1BC-4C63-8FD6-F37A8B59095B@thewambaughs.net>

next in thread | raw e-mail | index | archive | help

--Apple-Mail-1--29184053
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	delsp=yes;
	format=flowed

I have attached a patch that adds a knob for pthread support.  /usr/ 
local/share/examples/allegro/demo segfaults on my system.  Disabling  
pthreads fixed the problem.  I have an SMP system; don't know if that  
has any bearing on the problem...


--Apple-Mail-1--29184053
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream; x-unix-mode=0644; name="Makefile.patch"
Content-Disposition: attachment;
	filename=Makefile.patch

--- /usr/ports/devel/allegro/Makefile	Tue Feb  3 23:19:21 2004
+++ Makefile	Sat Jun 18 08:47:52 2005
@@ -20,9 +20,16 @@
 USE_REINPLACE=	yes
 USE_GMAKE=	yes
 USE_AUTOCONF_VER=	253
+
+# libpthread
+.if !defined(WITHOUT_PTHREAD)
 CONFIGURE_ENV=	CPPFLAGS="${PTHREAD_CFLAGS} -DHAVE_LIBPTHREAD" \
-		LDFLAGS="${PTHREAD_LIBS}"
+	LDFLAGS="${PTHREAD_LIBS}"
 CONFIGURE_ARGS=	--enable-vga=no
+.else
+CONFIGURE_ARGS= --enable-vga=no --enable-pthreads=no
+.endif
+
 MAKEFILE=	makefile
 ALL_TARGET=	full-build
 INSTALLS_SHLIB=	yes

--Apple-Mail-1--29184053--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?60EED6AB-B1BC-4C63-8FD6-F37A8B59095B>