firefox: don't include malloc.h on dragonflybsd.
a slightly more maintenance friendly version of the patch in PR pkg/51695 from David Shao.
This commit is contained in:
parent
67c81b2b79
commit
011c2da04d
1 changed files with 8 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.280 2017/01/27 13:28:11 ryoon Exp $
|
||||
# $NetBSD: Makefile,v 1.281 2017/02/04 12:58:12 maya Exp $
|
||||
|
||||
FIREFOX_VER= ${MOZ_BRANCH}${MOZ_BRANCH_MINOR}
|
||||
MOZ_BRANCH= 51.0
|
||||
|
@ -37,6 +37,13 @@ ALL_ENV+= MOZILLA_PKG_NAME=firefox
|
|||
BUILDLINK_TRANSFORM.SunOS+= rm:-fdata-sections
|
||||
BUILDLINK_TRANSFORM.SunOS+= rm:-ffunction-sections
|
||||
|
||||
SUBST_CLASSES+= dfly_malloc_h
|
||||
SUBST_STAGE.dfly_malloc_h= pre-configure
|
||||
SUBST_MESSAGE.dfly_malloc_h= Dont include malloc.h on dragonflybsd
|
||||
SUBST_SED.dfly_malloc_h= -e 's,HAVE_MALLOC_H,HAVE_MALLOC_H \&\& !defined(__DragonFly__),g'
|
||||
SUBST_FILES.dfly_malloc_h= media/libav/libavutil/mem.c
|
||||
SUBST_FILES.dfly_malloc_h+= media/ffvpx/libavutil/mem.c
|
||||
|
||||
LDFLAGS.DragonFly= -lplc4 -lnspr4
|
||||
LDFLAGS.FreeBSD= -lplc4 -lnspr4
|
||||
LDFLAGS.Linux= -lnspr4
|
||||
|
|
Loading…
Reference in a new issue