pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/buildlink3 transform --export-dynamic to -G and str...
details: https://anonhg.NetBSD.org/pkgsrc/rev/7617a97db9ae
branches: trunk
changeset: 477511:7617a97db9ae
user: grant <grant%pkgsrc.org@localhost>
date: Sun Jul 04 08:30:46 2004 +0000
description:
transform --export-dynamic to -G and strip -fstrict-prototypes.
diffstat:
mk/buildlink3/sunpro-cc-post-cache | 4 ++--
mk/buildlink3/sunpro-cc-post-logic | 12 +++++++++++-
2 files changed, 13 insertions(+), 3 deletions(-)
diffs (51 lines):
diff -r 15eeb0e7db67 -r 7617a97db9ae mk/buildlink3/sunpro-cc-post-cache
--- a/mk/buildlink3/sunpro-cc-post-cache Sun Jul 04 08:10:23 2004 +0000
+++ b/mk/buildlink3/sunpro-cc-post-cache Sun Jul 04 08:30:46 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: sunpro-cc-post-cache,v 1.8 2004/07/03 20:53:59 grant Exp $
+# $NetBSD: sunpro-cc-post-cache,v 1.9 2004/07/04 08:30:46 grant Exp $
#
# This file implements the default action of the "cc" private cache
# for the SunPro suite of compilers, and tells the wrapper to skip the
@@ -6,7 +6,7 @@
# can't handle; they will instead by handled directly by
# sunpro-cc-post-logic.
--[OW]*|-ansi|-f[pP][iI][cC]|-fno-gnu-keywords|-pedantic|-pthread|-shared|-static)
+-[OW]*|-ansi|--export-dynamic|-f[pP][iI][cC]|-fno-gnu-keywords|-fstrict-prototypes|-pedantic|-pthread|-shared|-static)
skipcache=yes
;;
esac
diff -r 15eeb0e7db67 -r 7617a97db9ae mk/buildlink3/sunpro-cc-post-logic
--- a/mk/buildlink3/sunpro-cc-post-logic Sun Jul 04 08:10:23 2004 +0000
+++ b/mk/buildlink3/sunpro-cc-post-logic Sun Jul 04 08:30:46 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: sunpro-cc-post-logic,v 1.10 2004/07/03 20:53:47 grant Exp $
+# $NetBSD: sunpro-cc-post-logic,v 1.11 2004/07/04 08:30:46 grant Exp $
#
# Silently accept some GCC compiler arguments by silently converting
# them to the SunPro compiler equivalents. This makes the SunPro
@@ -40,6 +40,11 @@
arg=
addtoprivatecache=yes
;;
+--export-dynamic)
+ # Solaris' linker uses -G to create shared objects.
+ arg=-G
+ addtoprivatecache=yes
+ ;;
-f[Pp][Ii][Cc])
# SunPro uses -Kpic to create position independent code.
#
@@ -50,6 +55,11 @@
arg=
addtoprivatecache=yes
;;
+ # No flag is required to enforce strict prototypes.
+-fstrict-prototypes)
+ arg=
+ addtoprivatecache=yes
+ ;;
-pedantic)
# No flag is required for SunPro to be pedantic.
arg=
Home |
Main Index |
Thread Index |
Old Index