pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lang/rust: wrong stdlib for c++ on FreeBSD

Le 2018-02-28 08:02, Kamil Rytarowski a écrit :
On 27.02.2018 15:34, Frédéric Fauberteau wrote:
Any idea to globally set the name of standard c++ for FreeBSD?

Please try:


Unfortunately these values might be hard-coded inside clang.

Yes, that was my solution but I added it in
+            // Very dirty!
+            if target.contains("freebsd") {
+ cfg.define("CMAKE_CXX_FLAGS", build.cflags(target).join(" ") + " -stdlib=libc++");

Thanky to, I improved the hack with:
+        // FreeBSD (from 10.2) also uses libc++.
+        if target.contains("freebsd") {
+            base.push("-stdlib=libc++".into());
+        }

Now, I have a problem with openssl:
   Compiling openssl v0.9.23
error[E0463]: can't find crate for `std`

error: aborting due to previous error

error: Could not compile `openssl`.

On the road again for new investigations!

Home | Main Index | Thread Index | Old Index