mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-18 08:02:48 +00:00
- Add USES=compiler:gcc-c++11-lib hoping to remove build errors on
FreeBSD-11. Reported by: http://beefy9.nyi.freebsd.org/data/111amd64-default/470749/logs/octave-forge-octclip-1.0.8_8.log
This commit is contained in:
parent
f67e181daf
commit
2431ca7a4a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=470756
@ -18,10 +18,9 @@ OCTSRC= ${DISTNAME}
|
||||
|
||||
WRKSRC= ${WRKDIR}/${OCTSRC}/src
|
||||
|
||||
.include "${.CURDIR}/../../Mk/bsd.octave.mk"
|
||||
USES+= compiler:gcc-c++11-lib
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e s/CC/MKOCTFILE/ -e s/-Wall// -e s/-Wextra// ${WRKSRC}/Makefile
|
||||
.include "${.CURDIR}/../../Mk/bsd.octave.mk"
|
||||
|
||||
post-build:
|
||||
${RM} ${WRKSRC}/Makefile ${WRKSRC}/configure
|
||||
|
15
math/octave-forge-octclip/files/patch-Makefile
Normal file
15
math/octave-forge-octclip/files/patch-Makefile
Normal file
@ -0,0 +1,15 @@
|
||||
--- Makefile.orig 2018-05-24 03:17:31 UTC
|
||||
+++ Makefile
|
||||
@@ -6,10 +6,10 @@ FLAGSCOMW=-Wall -Wextra -Wshadow -Wcast-
|
||||
#Common optimization flags for C and C++
|
||||
FLAGSCOMO=-O2 -funroll-loops -fno-common -fshort-enums
|
||||
#Flags for C
|
||||
-CFLAGS=-std=c99 -pedantic $(FLAGSCOMW) -Wconversion -Wmissing-prototypes
|
||||
+CFLAGS+=-std=c99 -pedantic $(FLAGSCOMW) -Wconversion -Wmissing-prototypes
|
||||
CFLAGS+=-Wstrict-prototypes -Wnested-externs $(FLAGSCOMO)
|
||||
#Flags for C++
|
||||
-CXXFLAGS=$(FLAGSCOMW) $(FLAGSCOMO)
|
||||
+CXXFLAGS+=$(FLAGSCOMW) $(FLAGSCOMO)
|
||||
#Export flags for compilers and linker
|
||||
export CFLAGS CXXFLAGS
|
||||
|
Loading…
Reference in New Issue
Block a user