From owner-cvs-ports@FreeBSD.ORG Sun Aug 17 08:28:30 2008 Return-Path: Delivered-To: cvs-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2AD0C1065679; Sun, 17 Aug 2008 08:28:30 +0000 (UTC) (envelope-from sobomax@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 1ECBC8FC0C; Sun, 17 Aug 2008 08:28:30 +0000 (UTC) (envelope-from sobomax@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.2/8.14.2) with ESMTP id m7H8STNN071726; Sun, 17 Aug 2008 08:28:29 GMT (envelope-from sobomax@repoman.freebsd.org) Received: (from sobomax@localhost) by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m7H8STiv071725; Sun, 17 Aug 2008 08:28:29 GMT (envelope-from sobomax) Message-Id: <200808170828.m7H8STiv071725@repoman.freebsd.org> From: Maxim Sobolev Date: Sun, 17 Aug 2008 08:28:29 +0000 (UTC) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: ports/net/asterisk Makefile ports/net/asterisk/files codecnego-patch-Makefile nocodecnego-patch-Makefile patch-Makefile.rules X-BeenThere: cvs-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Aug 2008 08:28:30 -0000 sobomax 2008-08-17 08:28:29 UTC FreeBSD ports repository Modified files: net/asterisk Makefile net/asterisk/files codecnego-patch-Makefile nocodecnego-patch-Makefile Added files: net/asterisk/files patch-Makefile.rules Log: Make asterisk respect CFLAGS. This should fix numerous "undefined reference to `__sync_xxx'" build errors reported by many people who have CPUTYPE set to i686 and similar values in /etc/make.conf. The problem itself is related to the fact that asterisk used FreeBSD CFLAGS when probing for gcc capabilities during configure phase, while its own CFLAGS during actual build. As a result, object code generated by gcc missed those functions. Revision Changes Path 1.103 +3 -1 ports/net/asterisk/Makefile 1.6 +13 -1 ports/net/asterisk/files/codecnego-patch-Makefile 1.6 +12 -0 ports/net/asterisk/files/nocodecnego-patch-Makefile 1.1 +21 -0 ports/net/asterisk/files/patch-Makefile.rules (new)