Bug 229597

Summary: converters/p5-Encode-Detect build error missing stdc++
Product: Ports & Packages Reporter: dewayne
Component: Individual Port(s)Assignee: freebsd-perl mailing list <perl>
Status: New ---    
Severity: Affects Some People CC: w.schwarzenfeld
Priority: --- Flags: bugzilla: maintainer-feedback? (perl)
Version: Latest   
Hardware: i386   
OS: Any   
Attachments:
Description Flags
Replace stdc++ with c++ none

Description dewayne 2018-07-08 01:23:41 UTC
Created attachment 194943 [details]
Replace stdc++ with c++

During build of /usr/ports/converters/p5-Encode-Detect
/usr/local/bin/ld: cannot find -lstdc++
Error code 2

Enclosed patch enables build with clang 6.0.0 on "FreeBSD 11.2-STABLE  r336017M     i386 hqdev-amd64-smp-vga 1102501 1102501"

A gcc7 build will require something like 
+     extra_linker_flags => ['-L/usr/local/lib/gcc7/ -lstdc++'],

unfortunately issues with -fstack-protector-strong with arose.
Comment 1 Walter Schwarzenfeld freebsd_triage 2019-08-11 18:30:31 UTC
Version 1.01_1 with clang90 shows no errors. Could you confirm?