summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2017-10-10 13:57:23 +0000
committerjperkin <jperkin@pkgsrc.org>2017-10-10 13:57:23 +0000
commitc3823759188da4b59721979e631b6597a5855829 (patch)
treeb0270662a25e2b82f3ac900280091bc867d7fe4f /mk
parent40d0bddd0191207b6c57b0ef19696c7f07086ff6 (diff)
downloadpkgsrc-c3823759188da4b59721979e631b6597a5855829.tar.gz
mk/platform: Remove unsupported Darwin/SunOS linker arguments.
Diffstat (limited to 'mk')
-rw-r--r--mk/platform/Darwin.mk3
-rw-r--r--mk/platform/SunOS.mk4
2 files changed, 5 insertions, 2 deletions
diff --git a/mk/platform/Darwin.mk b/mk/platform/Darwin.mk
index 9879d0781d0..72261c8360f 100644
--- a/mk/platform/Darwin.mk
+++ b/mk/platform/Darwin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: Darwin.mk,v 1.87 2017/07/09 17:03:12 schmonz Exp $
+# $NetBSD: Darwin.mk,v 1.88 2017/10/10 13:57:23 jperkin Exp $
#
# Variable definitions for the Darwin operating system.
@@ -145,6 +145,7 @@ _OPSYS_PREFER.openssl?= pkgsrc # builtin deprecated from 10.7 onwards
# Remove common GNU ld arguments incompatible with the Darwin linker.
BUILDLINK_TRANSFORM+= rm:-Wl,-O1
+BUILDLINK_TRANSFORM+= rm:-Wl,-O2
BUILDLINK_TRANSFORM+= rm:-Wl,-Bdynamic
BUILDLINK_TRANSFORM+= rm:-Wl,-Bsymbolic
BUILDLINK_TRANSFORM+= rm:-Wl,-export-dynamic
diff --git a/mk/platform/SunOS.mk b/mk/platform/SunOS.mk
index 3a780eb7abf..c35c864d568 100644
--- a/mk/platform/SunOS.mk
+++ b/mk/platform/SunOS.mk
@@ -1,4 +1,4 @@
-# $NetBSD: SunOS.mk,v 1.76 2017/06/21 08:20:10 jperkin Exp $
+# $NetBSD: SunOS.mk,v 1.77 2017/10/10 13:57:23 jperkin Exp $
#
# Variable definitions for the SunOS/Solaris operating system.
@@ -85,6 +85,8 @@ 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