pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/rust rust: Remove -Wl,--strip-all on SunOS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/25f4246bf12c
branches:  trunk
changeset: 390069:25f4246bf12c
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Dec 15 21:47:46 2022 +0000

description:
rust: Remove -Wl,--strip-all on SunOS.

pkgsrc has its own strip handling, and we need to ensure objects aren't
stripped before we optionally generate CTF data for them.

diffstat:

 lang/rust/cargo.mk |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r cfc1ce767ff0 -r 25f4246bf12c lang/rust/cargo.mk
--- a/lang/rust/cargo.mk        Thu Dec 15 19:26:35 2022 +0000
+++ b/lang/rust/cargo.mk        Thu Dec 15 21:47:46 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: cargo.mk,v 1.30 2022/05/24 09:51:51 nia Exp $
+# $NetBSD: cargo.mk,v 1.31 2022/12/15 21:47:46 jperkin Exp $
 #
 # Common logic that can be used by packages that depend on cargo crates
 # from crates.io. This lets existing pkgsrc infrastructure fetch and verify
@@ -36,6 +36,9 @@
 EXTRACT_DIR.${crate}.crate?=   ${CARGO_VENDOR_DIR}
 .endfor
 
+# pkgsrc handles stripping and we might need to generate CTF data.
+BUILDLINK_TRANSFORM.SunOS+=    rm:-Wl,--strip-all
+
 .include "../../mk/bsd.prefs.mk"
 # Triggers NetBSD ld.so bug (PR toolchain/54192)
 # See Makefile for further information.



Home | Main Index | Thread Index | Old Index