summaryrefslogtreecommitdiff
path: root/mk/wrapper
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-02-07 18:25:29 +0000
committerrillig <rillig@pkgsrc.org>2007-02-07 18:25:29 +0000
commit96a2636f644f34c704d92af1856e0df85f799792 (patch)
tree6954eb9329b914503bc85e8ff5107e2646a6095f /mk/wrapper
parentea12e4834625327b5fb0eb616ccc33c05ad3ed57 (diff)
downloadpkgsrc-96a2636f644f34c704d92af1856e0df85f799792.tar.gz
Added option handlers for all of -fPIC, -fpic, -KPIC, -kPIC,
-xcode=pic13 and -xcode=pic32, as suggested in PR 35555. This also fixes and old bug where -fPIC (32 bit) had been translated to -kpic (13 bit), but apparently that doesn't make a big difference in practice.
Diffstat (limited to 'mk/wrapper')
-rw-r--r--mk/wrapper/transform-sunpro-cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/mk/wrapper/transform-sunpro-cc b/mk/wrapper/transform-sunpro-cc
index 660ee034e98..174cfcb14e9 100644
--- a/mk/wrapper/transform-sunpro-cc
+++ b/mk/wrapper/transform-sunpro-cc
@@ -1,4 +1,4 @@
-# $NetBSD: transform-sunpro-cc,v 1.24 2007/02/06 20:33:51 rillig Exp $
+# $NetBSD: transform-sunpro-cc,v 1.25 2007/02/07 18:25:29 rillig Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -89,9 +89,13 @@ case $arg in
--export-dynamic |\
-shared ) transform_to "-G" ;;
+# SunPro on amd64 does not know the -xcode= option (see PR 35555).
+-fpic |\
+-Kpic |\
+-xcode=pic13 ) transform_to "-Kpic" ;;
-fPIC |\
--fpic ) transform_to "-Kpic" ;;
--KPIC ) transform_pass ;;
+-KPIC |\
+-xcode=pic32 ) transform_to "-KPIC" ;;
# SunPro needs -mt -lpthread for POSIX threads.
-pthread ) transform_to_and_split "-mt -lpthread" ;;