MFH: r498488
Add -fnested-functions to CFLAGS when using base GCC to fix build. While here, pet portlint. Approved by: portmgr (tier-2 blanket)
This commit is contained in:
parent
eddfb0a564
commit
25ff2d9617
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/branches/2019Q2/; revision=498489
@ -13,13 +13,11 @@ COMMENT= Multimedia streaming server for KiSS/Linksys player
|
||||
LICENSE= GPLv2+
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
LIB_DEPENDS= libgd.so:graphics/gd \
|
||||
libdvdread.so:multimedia/libdvdread
|
||||
|
||||
BROKEN_armv6= fails to compile: kissdx.c: function definition is not allowed here
|
||||
BROKEN_armv7= fails to compile: kissdx.c: function definition is not allowed here
|
||||
BROKEN_mips64= fails to compile: kissdx.c: nested functions are disabled, use -fnested-functions to re-enable
|
||||
BROKEN_powerpc64= fails to compile: kissdx.c: nested functions are disabled, use -fnested-functions to re-enable
|
||||
|
||||
LIB_DEPENDS= libgd.so:graphics/gd \
|
||||
libdvdread.so:multimedia/libdvdread
|
||||
|
||||
USES= compiler:nestedfct dos2unix iconv jpeg
|
||||
MAKE_ENV= FreeBSD=defined
|
||||
@ -45,6 +43,10 @@ post-patch:
|
||||
s|^\.o :|${PORTNAME}: $$(OBJS)| ; \
|
||||
/^all:/s| $$(OBJS)||' ${WRKSRC}/Makefile
|
||||
|
||||
.if exists(/usr/lib/libstdc++.so)
|
||||
CFLAGS+= -fnested-functions
|
||||
.endif
|
||||
|
||||
pre-build:
|
||||
@${RM} ${WRKSRC}/kissdx.o
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user