aboutsummaryrefslogtreecommitdiff
path: root/lang/gcc6
diff options
context:
space:
mode:
authorGerald Pfeifer <gerald@FreeBSD.org>2019-02-19 22:09:23 +0000
committerGerald Pfeifer <gerald@FreeBSD.org>2019-02-19 22:09:23 +0000
commit4416e5432c7fcad6f5fe56e8c0654c0469584048 (patch)
treeaf9e11e73b437d49ffc1971850ae1cd26da34775 /lang/gcc6
parent9ceb3e04ffcb81d59c30ddc94a53372542a0ebf6 (diff)
downloadports-4416e5432c7fcad6f5fe56e8c0654c0469584048.tar.gz
ports-4416e5432c7fcad6f5fe56e8c0654c0469584048.zip
Notes
Diffstat (limited to 'lang/gcc6')
-rw-r--r--lang/gcc6/Makefile8
-rw-r--r--lang/gcc6/files/patch-libjava-classpath-scripts-check_jni_methods.sh.in12
2 files changed, 16 insertions, 4 deletions
diff --git a/lang/gcc6/Makefile b/lang/gcc6/Makefile
index 0a3fd70bfcb3..8b741db972f6 100644
--- a/lang/gcc6/Makefile
+++ b/lang/gcc6/Makefile
@@ -23,18 +23,18 @@ LIB_DEPENDS= libgmp.so:math/gmp \
libmpc.so:math/mpc
BUILD_DEPENDS+= ${LOCALBASE}/bin/as:devel/binutils
RUN_DEPENDS+= ${LOCALBASE}/bin/as:devel/binutils
-
.if defined(MAINTAINER_MODE)
BUILD_DEPENDS+= runtest:misc/dejagnu
.endif
+USES= compiler cpe gmake iconv libtool makeinfo perl5 tar:xz
+USE_BINUTILS= yes
+USE_PERL5= build
+
CPE_VENDOR= gnu
GCC_VERSION= ${PORTVERSION}
SUFFIX= ${PORTVERSION:C/([0-9]+).*/\1/}
-USES= compiler cpe gmake iconv libtool makeinfo perl5 tar:xz
-USE_BINUTILS= yes
-USE_PERL5= build
SSP_UNSAFE= yes
CFLAGS:= ${CFLAGS:N-mretpoline}
CXXFLAGS:= ${CXXFLAGS:N-mretpoline}
diff --git a/lang/gcc6/files/patch-libjava-classpath-scripts-check_jni_methods.sh.in b/lang/gcc6/files/patch-libjava-classpath-scripts-check_jni_methods.sh.in
new file mode 100644
index 000000000000..b901cb4b6002
--- /dev/null
+++ b/lang/gcc6/files/patch-libjava-classpath-scripts-check_jni_methods.sh.in
@@ -0,0 +1,12 @@
+--- UTC
+--- libjava/classpath/scripts/check_jni_methods.sh.in.orig 2018-11-23 15:02:00 UTC
++++ libjava/classpath/scripts/check_jni_methods.sh.in
+@@ -29,7 +29,7 @@ find @abs_top_srcdir@/native/jni -name \*.cpp | \
+ find @abs_top_srcdir@/native/jni -name \*.cpp | \
+ xargs egrep -h '^(JNIEXPORT .* JNICALL )?Java_' | \
+ cut -f4 -d\ | \
+- LC_ALL=C sed -e 's,^\JNIEXPORT .* JNICALL \(Java_[a-z_A-Z0-9]*\).*$,\1,' >> $TMPFILE2
++ LC_ALL=C sed -e 's,^JNIEXPORT .* JNICALL \(Java_[a-z_A-Z0-9]*\).*$,\1,' >> $TMPFILE2
+ mv $TMPFILE2 $TMPFILE3
+ LC_ALL=C sort -u $TMPFILE3 > $TMPFILE2
+ rm $TMPFILE3