diff options
author | is <is@pkgsrc.org> | 2007-10-17 07:30:10 +0000 |
---|---|---|
committer | is <is@pkgsrc.org> | 2007-10-17 07:30:10 +0000 |
commit | 0596912f744b387a7dfa2192d4b93c8e03e9d8ac (patch) | |
tree | 6464d5979b8324e43ce16386469763e77cbf5f8d /mk | |
parent | 9f907aca0048f117a84d197d220898cbe1a7a806 (diff) | |
download | pkgsrc-0596912f744b387a7dfa2192d4b93c8e03e9d8ac.tar.gz |
Handle more variants of the position independent code flag from Solaris.
This is needed for Xaw3d. Fix suggested by joerg@.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/wrapper/transform-gcc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/wrapper/transform-gcc b/mk/wrapper/transform-gcc index f7941430461..f366b683899 100644 --- a/mk/wrapper/transform-gcc +++ b/mk/wrapper/transform-gcc @@ -1,4 +1,4 @@ -# $NetBSD: transform-gcc,v 1.17 2007/09/08 13:37:51 rillig Exp $ +# $NetBSD: transform-gcc,v 1.18 2007/10/17 07:30:10 is Exp $ # # This file handles the transformations needed for gcc that can be done # looking at only one argument at a time. @@ -121,6 +121,8 @@ case $arg in -fconstant-string-class=* ) transform_pass ;; # Other compiler's options that have corresponding GCC options. +-Kpic |\ +-kPIC |\ -KPIC |\ -kPIC ) transform_to "-fPIC" ;; -mt ) transform_to "-threads" ;; |