Created attachment 148314 [details]
Add libstdc++-devel-4.4.7-4.el6.i686.rpm to port
The linux-c6-devtools port allows C programs, but not C++ programs to be built due to missing C++ headers. Add libstdc++-devel-4.4.7-4.el6.i686.rpm solves this problem.
The attached patch does this and the s/@dirrmtry/@dir/ switch.
Auto-assigned to maintainer emulation@FreeBSD.org
I'll take it.
Created attachment 148348 [details]
fix C++ compilation and general shared linkage
In addition to the missing C++ headers, I tripped on the problem that /contrib/linux/usr/lib/gcc/i686-redhat-linux/4.4.4/libgcc_s.so was a symlink to /lib/libgcc_s.so.1 which can't be linked into a linux program. This patch replaces it with a link to /compat/linux/lib/libgcc_s.so.1 so programs can be linked.
Thanks for the amended patch.
As it were, I'm not sure you need to explicitly import
before the post-install section, and
A commit references this bug:
Date: Fri Oct 17 14:21:38 UTC 2014
New revision: 371057
devel/linux-c6-devtools: add libstdc++
- Add c6 libstdc++ RPM, so that Linux C++ code can be compiled.
Differential Revision: https://reviews.freebsd.org/D948
Submitted by: brooks
Approved by: swills (mentor)