pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/platform mk: Remove generic SunOS linker argument r...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f34ec4ce0562
branches:  trunk
changeset: 388507:f34ec4ce0562
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Mon Nov 21 18:25:54 2022 +0000

description:
mk: Remove generic SunOS linker argument removals.

While these were useful in helping many packages to build out of the box,
it ended up resulting in some packages installing broken configuration
files as their configure tests for supported flags were passing.

For example, ruby packages were shipping an rbconfig.rb with LDFLAGS
containing -Wl,--no-as-needed, resulting in any ruby software built
outside of pkgsrc that required a compiler always failing.

diffstat:

 mk/platform/SunOS.mk |  16 +---------------
 1 files changed, 1 insertions(+), 15 deletions(-)

diffs (30 lines):

diff -r f81ea24acf73 -r f34ec4ce0562 mk/platform/SunOS.mk
--- a/mk/platform/SunOS.mk      Mon Nov 21 18:20:40 2022 +0000
+++ b/mk/platform/SunOS.mk      Mon Nov 21 18:25:54 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: SunOS.mk,v 1.85 2022/10/01 14:23:26 jperkin Exp $
+# $NetBSD: SunOS.mk,v 1.86 2022/11/21 18:25:54 jperkin Exp $
 #
 # Variable definitions for the SunOS/Solaris operating system.
 
@@ -83,20 +83,6 @@
 _PATCH_BACKUP_ARG?=    -b -V simple -z # switch to patch(1) for backup suffix
 _USE_RPATH=            yes             # add rpath to LDFLAGS
 
-# Remove flags specific to GNU ld.
-BUILDLINK_TRANSFORM+=  rm:-Wl,--as-needed
-BUILDLINK_TRANSFORM+=  rm:-Wl,--disable-new-dtags
-BUILDLINK_TRANSFORM+=  rm:-Wl,--enable-new-dtags
-BUILDLINK_TRANSFORM+=  rm:-Wl,--export-dynamic
-BUILDLINK_TRANSFORM+=  rm:-Wl,--gc-sections
-BUILDLINK_TRANSFORM+=  rm:-Wl,--no-as-needed
-BUILDLINK_TRANSFORM+=  rm:-Wl,--warn-common
-BUILDLINK_TRANSFORM+=  rm:-Wl,--warn-shared-textrel
-BUILDLINK_TRANSFORM+=  rm:-Wl,-O1
-BUILDLINK_TRANSFORM+=  rm:-Wl,-O2
-BUILDLINK_TRANSFORM+=  rm:-Wl,-export-dynamic
-BUILDLINK_TRANSFORM+=  rm:-export-dynamic
-
 # Convert GNU ld flags to native SunOS ld flags where possible.
 BUILDLINK_TRANSFORM+=  opt:-Wl,--rpath:-Wl,-R
 



Home | Main Index | Thread Index | Old Index