On Fri, 27 Apr 2018, s_g...@telus.net wrote:

>  
> 
> I loaded the latest ports and src this morning.  Do some other packages need
> to be rebuilt also?

I should have checked but didn't have the time. And at first glance 
everything looked ok. But Makefile is different to the configure shell 
script. The problem is fixed by using $(CC) instead of $CC in the shell 
expression:

Index: patches/patch-gcc_Makefile_in
===================================================================
RCS file: /cvs/ports/lang/gcc/4.9/patches/patch-gcc_Makefile_in,v
retrieving revision 1.2
diff -u -p -r1.2 patch-gcc_Makefile_in
--- patches/patch-gcc_Makefile_in       25 Apr 2018 12:56:56 -0000      
1.2
+++ patches/patch-gcc_Makefile_in       27 Apr 2018 22:16:34 -0000
@@ -9,7 +9,7 @@ Index: gcc/Makefile.in

  CFLAGS-gcc.o += $(DRIVER_DEFINES)

-+ISCLANG = $(shell $CC --version | grep -c clang)
++ISCLANG = $(shell $(CC) --version | grep -c clang)
 +
 +ifeq ($(ISCLANG),1)
 +CFLAGS-insn-attrtab.o += -fbracket-depth=512

Reply via email to