pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/wrapper transform -dynamiclib and -fno-common to th...
details: https://anonhg.NetBSD.org/pkgsrc/rev/e1df1fb25b25
branches: trunk
changeset: 485209:e1df1fb25b25
user: grant <grant%pkgsrc.org@localhost>
date: Sun Dec 05 09:26:59 2004 +0000
description:
transform -dynamiclib and -fno-common to the appropriate arguments
for xlc.
diffstat:
mk/wrapper/transform-xlc-cc | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)
diffs (35 lines):
diff -r 91ee26b1148b -r e1df1fb25b25 mk/wrapper/transform-xlc-cc
--- a/mk/wrapper/transform-xlc-cc Sun Dec 05 09:20:48 2004 +0000
+++ b/mk/wrapper/transform-xlc-cc Sun Dec 05 09:26:59 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: transform-xlc-cc,v 1.3 2004/12/05 02:47:52 grant Exp $
+# $NetBSD: transform-xlc-cc,v 1.4 2004/12/05 09:26:59 grant Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -49,10 +49,24 @@
msg_log $wrapperlog " (transform-xlc-cc) to: $arg"
addtocache=yes
;;
+# xlc uses -qmkshrobj to create shared objects, and we also need to
+# tell the linker to use a flat namespace and allow undefined symbols.
+-dynamiclib)
+ arg="-qmkshrobj -Wl,-flat_namespace -Wl,-undefined -Wl,suppress"
+ msg_log $wrapperlog " (transform-xlc-cc) to: $arg"
+ addtocache=yes
+ split_arg=yes
+ ;;
+# -qnocommon is the xlc argument to allocate uninitialized globals in
+# the data section.
+-fno-common)
+ arg=-qnocommon
+ addtocache=yes
+ ;;
######################################################################
# Ignore some flags that are unnecessary for XL C.
######################################################################
--pipe|-ansi|-fno-common|-fno-gnu-keywords|-fstrict-prototypes|-no-cpp-precomp|-pedantic)
+-pipe|-ansi|-fno-gnu-keywords|-fstrict-prototypes|-no-cpp-precomp|-pedantic)
arg=
msg_log $wrapperlog " (transform-xlc-cc) to: $arg"
addtocache=yes
Home |
Main Index |
Thread Index |
Old Index