pkgsrc-Bugs archive

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

pkg/39633: [PATCH] Fix to ignore -Wl,-E on AIX for xlc



>Number:         39633
>Category:       pkg
>Synopsis:       [PATCH] Fix to ignore -Wl,-E on AIX for xlc
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 27 10:30:00 +0000 2008
>Originator:     Jens Rehsack
>Release:        -
>Organization:
Bayer Business Services
>Environment:
AIX 5.3 TL8
>Description:
building shells/bash breaks at the first linker invocation because an invalid 
argument (-Wl,-E) will be passed.
>How-To-Repeat:
Build shells/bash on AIX using xlC
>Fix:
Index: mk/wrapper/cmd-sink-aix-cc
===================================================================
RCS file: /cvsroot/pkgsrc/mk/wrapper/cmd-sink-aix-cc,v
retrieving revision 1.2
diff -u -r1.2 cmd-sink-aix-cc
--- mk/wrapper/cmd-sink-aix-cc  16 May 2005 17:54:51 -0000      1.2
+++ mk/wrapper/cmd-sink-aix-cc  27 Sep 2008 10:17:57 -0000
@@ -47,13 +47,14 @@
        # into a path collection we can later append to command line
        # using -blibpath.
        ##############################################################
-       -R*|-Wl,-R*|-Wl,-rpath,*|-Wl,-rpath-link,*|-Wl,--rpath,*)
+       -R*|-Wl,-R*|-Wl,-rpath,*|-Wl,-rpath-link,*|-Wl,--rpath,*|-Wl,-E*)
                case $arg in
                -R*)                    R="-R" ;;
                -Wl,-R*)                R="-Wl,-R" ;;
                -Wl,-rpath,*)           R="-Wl,-rpath," ;;
                -Wl,-rpath-link,*)      R="-Wl,-rpath-link," ;;
                -Wl,--rpath,*)          R="-Wl,--rpath," ;;
+               -Wl,-E*)                R="-Wl,-E" ;;
                esac
                dir="${arg#$R}"
                case "$blibpath" in
Index: mk/wrapper/cmd-sink-aix-ld
===================================================================
RCS file: /cvsroot/pkgsrc/mk/wrapper/cmd-sink-aix-ld,v
retrieving revision 1.2
diff -u -r1.2 cmd-sink-aix-ld
--- mk/wrapper/cmd-sink-aix-ld  16 May 2005 17:54:51 -0000      1.2
+++ mk/wrapper/cmd-sink-aix-ld  27 Sep 2008 10:17:57 -0000
@@ -47,13 +47,14 @@
        # into a path collection we can later append to command line
        # using -blibpath.
        ##############################################################
-       -R*|-Wl,-R*|-Wl,-rpath,*|-Wl,-rpath-link,*|-Wl,--rpath,*)
+       -R*|-Wl,-R*|-Wl,-rpath,*|-Wl,-rpath-link,*|-Wl,--rpath,*|-Wl,-E*)
                case $arg in
                -R*)                    R="-R" ;;
                -Wl,-R*)                R="-Wl,-R" ;;
                -Wl,-rpath,*)           R="-Wl,-rpath," ;;
                -Wl,-rpath-link,*)      R="-Wl,-rpath-link," ;;
                -Wl,--rpath,*)          R="-Wl,--rpath," ;;
+               -Wl,-E*)                R="-Wl,-E" ;;
                esac
                dir="${arg#$R}"
                case $blibpath in
Index: mk/wrapper/cmd-sink-aix-xlc
===================================================================
RCS file: /cvsroot/pkgsrc/mk/wrapper/cmd-sink-aix-xlc,v
retrieving revision 1.4
diff -u -r1.4 cmd-sink-aix-xlc
--- mk/wrapper/cmd-sink-aix-xlc 5 Oct 2007 18:19:45 -0000       1.4
+++ mk/wrapper/cmd-sink-aix-xlc 27 Sep 2008 10:17:57 -0000
@@ -45,13 +45,14 @@
        # into a path collection we can later append to command line
        # using -blibpath.
        ##############################################################
-       -R*|-Wl,-R*|-Wl,-rpath,*|-Wl,-rpath-link,*|-Wl,--rpath,*)
+       -R*|-Wl,-R*|-Wl,-rpath,*|-Wl,-rpath-link,*|-Wl,--rpath,*|-Wl,-E*)
                case $arg in
                -R*)                    R="-R" ;;
                -Wl,-R*)                R="-Wl,-R" ;;
                -Wl,-rpath,*)           R="-Wl,-rpath," ;;
                -Wl,-rpath-link,*)      R="-Wl,-rpath-link," ;;
                -Wl,--rpath,*)          R="-Wl,--rpath," ;;
+               -Wl,-E*)                R="-Wl,-E" ;;
                esac
                dir="${arg#$R}"
                case $blibpath in



Home | Main Index | Thread Index | Old Index