Fix build with -fno-common

This commit is contained in:
Stefan Eßer 2020-09-19 16:55:18 +00:00
parent ef76631519
commit fa0adf3029
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=549043
4 changed files with 26 additions and 0 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= pcc
PORTVERSION= 1.1.0
PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES= ftp://pcc.ludd.ltu.se/pub/pcc-releases/ \
http://pcc.ludd.ltu.se/ftp/pub/pcc-releases/ \

View File

@ -1,2 +1,3 @@
TIMESTAMP = 1600532163
SHA256 (pcc-1.1.0.tgz) = d9e3fed84c767dcddefb6b1f854d5da8921f3f65d8bd02997743412f41474d64
SIZE (pcc-1.1.0.tgz) = 848427

View File

@ -0,0 +1,12 @@
--- cc/ccom/scan.l.orig 2014-10-12 17:39:26 UTC
+++ cc/ccom/scan.l
@@ -236,7 +236,8 @@ L?\"(\\.|[^\\"])*\" { yylval.strp = yytext; return C_S
%%
-int lineno, issyshdr;
+extern int lineno;
+int issyshdr;
char *ftitle = "<stdin>";
int

View File

@ -0,0 +1,12 @@
--- cc/cxxcom/scan.l.orig 2014-08-18 11:27:34 UTC
+++ cc/cxxcom/scan.l
@@ -220,7 +220,8 @@ L?\"(\\.|[^\\"])*\" { yylval.strp = yytext; return C_S
%%
-int lineno, issyshdr;
+extern int lineno;
+int issyshdr;
char *ftitle = "<stdin>";
static int