pkgsrc-Bugs archive

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

pkg/48424: -Wp,-MD wrapper needed for MIPSPro



>Number:         48424
>Category:       pkg
>Synopsis:       -Wp,-MD wrapper needed for MIPSPro
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 05 01:05:00 +0000 2013
>Originator:     duck%shangtai.net@localhost
>Release:        pkgsrc-2013Q3
>Organization:
>Environment:
System: IRIX64 halo 6.5 6.5.29m 01090133 IP30
Architecture: mips
Machine: IP30
>Description:
While compiling libwww I found that it tries to pass -Wp,-MD,somedepfile to
the compiler, this gets just passed through and causes mipspro to think
it should compile somedepfile (-MD is not a valid option and does not accept
an argument) which does not exist and the build breaks.
>How-To-Repeat:
Try to build libwww on IRIX with MIPSPro (7.4.4)
>Fix:
The following patch will solve the issue. Note: this does create a depfile, and
some other pkg may incorrectly assume that the depfile is in a gnu-like format
and potentially break. I have not come across such a pkg.

Index: transform-mipspro-cc
===================================================================
RCS file: /cvsroot/pkgsrc/mk/wrapper/transform-mipspro-cc,v
retrieving revision 1.11
diff -u -r1.11 transform-mipspro-cc
--- transform-mipspro-cc        15 Jun 2007 15:34:31 -0000      1.11
+++ transform-mipspro-cc        4 Dec 2013 23:28:40 -0000
@@ -68,6 +68,7 @@
 -R*            ) transform_to "-Wl,-rpath,${arg#-R}" ;;
 -Wl,-R*                ) transform_to "-Wl,-rpath,${arg#-Wl,-R}" ;;
 
+-Wp,-MD,*      ) transform_to "-Wp,-MDupdate,${arg#-Wp,-MD,}" ;;
 # The MIPSpro compiler accepts these -W* directives, so just pass them
 # on through.
 -W[ablfpR]*,*  ) transform_pass ;;



Home | Main Index | Thread Index | Old Index