pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/buildlink3 transform -f{pic,PIC} -> -Kpic and -shar...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6bbe06882f97
branches:  trunk
changeset: 467506:6bbe06882f97
user:      grant <grant%pkgsrc.org@localhost>
date:      Mon Feb 02 01:36:14 2004 +0000

description:
transform -f{pic,PIC} -> -Kpic and -shared -> -G to fix building of
packages which pass these gcc-specific flags.

also ignore -Werror; if a package passes -Werror, it's expecting that
the compiler is gcc, which in this case it is not. SunPro often emits
warnings on code which gcc doesn't, so transforming this flag to
-errwarn is counterproductive.

diffstat:

 mk/buildlink3/sunpro-cc-post-logic |  21 +++++++++++++--------
 1 files changed, 13 insertions(+), 8 deletions(-)

diffs (40 lines):

diff -r 18dad28e84a5 -r 6bbe06882f97 mk/buildlink3/sunpro-cc-post-logic
--- a/mk/buildlink3/sunpro-cc-post-logic        Mon Feb 02 00:08:28 2004 +0000
+++ b/mk/buildlink3/sunpro-cc-post-logic        Mon Feb 02 01:36:14 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: sunpro-cc-post-logic,v 1.3 2004/01/06 08:48:29 jlam Exp $
+# $NetBSD: sunpro-cc-post-logic,v 1.4 2004/02/02 01:36:14 grant Exp $
 #
 # Silently accept some GCC compiler arguments by silently converting
 # them to the SunPro compiler equivalents.  This makes the SunPro
@@ -21,13 +21,6 @@
        arg=
        addtoprivatecache=yes
        ;;
--Werror)
-       # "-errwarn" is the right way to convince the SunPro compiler
-       # to stop on compilation warnings.
-       #
-       arg="-errwarn"
-       addtoprivatecache=yes
-       ;;
 -Wl,-R*)
        # Directories for the runtime library search path are passed
        # via simply "-R<dir>", not "-Wl,-R<dir>".
@@ -42,4 +35,16 @@
        arg=
        addtoprivatecache=yes
        ;;
+-f[Pp][Ii][Cc])
+       # SunPro uses -Kpic to create position indepedent code.
+       #
+       arg=-Kpic
+       addtoprivatecache=yes
+       ;;
+-shared)
+       # Solaris' linker uses -G to create shared objects.
+       #
+       arg=-G
+       addtoprivatecache=yes
+       ;;
 esac



Home | Main Index | Thread Index | Old Index