pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/comms/asterisk16 asterisk16: Avoid using -march=native...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/723052d83826
branches:  trunk
changeset: 443889:723052d83826
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu Dec 31 11:07:01 2020 +0000

description:
asterisk16: Avoid using -march=native, it breaks binary packages.

Also avoid passing crazy optimization and debug flags in general, just
honor the user's CFLAGS.

diffstat:

 comms/asterisk16/Makefile   |  6 ++++--
 comms/asterisk16/options.mk |  3 ++-
 2 files changed, 6 insertions(+), 3 deletions(-)

diffs (43 lines):

diff -r d9059f381093 -r 723052d83826 comms/asterisk16/Makefile
--- a/comms/asterisk16/Makefile Thu Dec 31 10:57:03 2020 +0000
+++ b/comms/asterisk16/Makefile Thu Dec 31 11:07:01 2020 +0000
@@ -1,10 +1,11 @@
-# $NetBSD: Makefile,v 1.72 2020/12/10 13:52:30 gdt Exp $
+# $NetBSD: Makefile,v 1.73 2020/12/31 11:07:01 nia Exp $
 #
 # NOTE: when updating this package, there are two places that sound
 #       tarballs need to be checked; look in ${WRKSRC}/sounds/Makefile
 #       to find out the current sound file versions
 
 DISTNAME=      asterisk-16.15.0
+PKGREVISION=   1
 CATEGORIES=    comms net audio
 MASTER_SITES=  http://downloads.asterisk.org/pub/telephony/asterisk/
 MASTER_SITES+= http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/
@@ -111,7 +112,8 @@
 MAKE_FLAGS+=           LDOPTS=${LDFLAGS:M*:Q}
 MAKE_FLAGS+=           HTTP_DOCSDIR=${PREFIX}/share/httpd/htdocs
 MAKE_FLAGS+=           HTTP_CGIDIR=${PREFIX}/libexec/cgi-bin
-MAKE_FLAGS+=           OPTIMIZE=-O3
+MAKE_FLAGS+=           OPTIMIZE=
+MAKE_FLAGS+=           DEBUG=
 
 .if !empty(MACHINE_PLATFORM:MSunOS-*-i386)
 BUILDLINK_TRANSFORM+=  rm:-march=i386
diff -r d9059f381093 -r 723052d83826 comms/asterisk16/options.mk
--- a/comms/asterisk16/options.mk       Thu Dec 31 10:57:03 2020 +0000
+++ b/comms/asterisk16/options.mk       Thu Dec 31 11:07:01 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.17 2020/05/31 14:39:32 rillig Exp $
+# $NetBSD: options.mk,v 1.18 2020/12/31 11:07:01 nia Exp $
 
 PKG_OPTIONS_VAR=               PKG_OPTIONS.asterisk
 PKG_SUPPORTED_OPTIONS=         x11 unixodbc webvmail ldap spandsp
@@ -70,6 +70,7 @@
        ${ECHO} "MENUSELECT_CHANNELS=-chan_mgcp" >> ${WRKSRC}/pkgsrc.makeopts
 .endif
        ${ECHO} "MENUSELECT_AGIS=agi-test.agi eagi-test eagi-sphinx-test jukebox.agi" >> ${WRKSRC}/pkgsrc.makeopts
+       ${ECHO} "MENUSELECT_CFLAGS=-BUILD_NATIVE" >> ${WRKSRC}/pkgsrc.makeopts
        # this is a hack to work around a bug in menuselect
        cd ${WRKSRC} && make ${MAKE_FLAGS} menuselect.makeopts
 



Home | Main Index | Thread Index | Old Index