svn commit: r547170 - in head/lang/cbmbasic: . files
Gunther Nikl
gnikl at justmail.de
Fri Sep 4 18:31:06 UTC 2020
Hello,
Edward Tomasz Napierala <trasz at FreeBSD.org> wrote:
> Author: trasz
> Date: Mon Aug 31 12:22:32 2020
> New Revision: 547170
> URL: https://svnweb.freebsd.org/changeset/ports/547170
>
> Log:
> Fix build ("ld: error: duplicate symbol: RAM").
>
> Added:
> head/lang/cbmbasic/files/
> head/lang/cbmbasic/files/patch-Makefile (contents, props changed)
> Modified:
> head/lang/cbmbasic/Makefile
>
> Modified: head/lang/cbmbasic/Makefile
> ==============================================================================
> --- head/lang/cbmbasic/Makefile Mon Aug 31 11:59:09
> 2020 (r547169) +++ head/lang/cbmbasic/Makefile Mon Aug
> 31 12:22:32 2020 (r547170) @@ -15,6 +15,8 @@
> USE_GITHUB= yes GH_ACCOUNT= mist64
> GH_TAGNAME= 89093eba090d6e1c2d2b6e1cb1616dba0ce9c7f6
>
> +CFLAGS+= -fcommon
> +
> PLIST_FILES= bin/cbmbasic
>
> do-install:
>
> Added: head/lang/cbmbasic/files/patch-Makefile
> ==============================================================================
> --- /dev/null 00:00:00 1970 (empty, because file is
> newly added) +++ head/lang/cbmbasic/files/patch-Makefile Mon
> Aug 31 12:22:32 2020 (r547170) @@ -0,0 +1,14 @@
> +--- Makefile.orig 2014-12-06 23:57:18 UTC
> ++++ Makefile
> +@@ -1,10 +1,9 @@
> + OBJS=cbmbasic.o runtime.o plugin.o console.o
> +-CFLAGS=-Wall -O3
> +
> + all: cbmbasic
> +
> + cbmbasic: $(OBJS)
> +- $(CC) -o cbmbasic $(OBJS)
> ++ $(CC) $(CFLAGS) -o cbmbasic $(OBJS)
Can you explain this change? Why are CFLAGS used when linking?
Regards,
Gunther
More information about the svn-ports-head
mailing list