pkgsrc-Bugs archive

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

pkg/43634: multimedia/xvidcore fails to build on SunOS [patch]

>Number:         43634
>Category:       pkg
>Synopsis:       multimedia/xvidcore fails to build on SunOS [patch]
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 18 09:30:00 +0000 2010
>Originator:     Aleksey Cheusov
>Release:        NetBSD 5.1_RC3
System: NetBSD 5.1_RC3 NetBSD 5.1_RC3 (GENERIC) #1: Mon 
Jun 28 00:06:07 EEST 2010 
Architecture: x86_64
Machine: amd64
Build on OpenSolaris ends like this

    C: utils/timer.c
    L: libxvidcore.a
  usage: ld [-3:6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VW:Y:?] 
          [-32]           enforce a 32-bit link-edit
          [-64]           enforce a 64-bit link-edit
          [-a]            create an absolute file
          [-b]            do not do special PIC relocations in a.out

Sun ld is in action with gcc compiler too.
Also sunpro is available not only for SunOS.

Index: Makefile
RCS file: /cvsroot/pkgsrc/multimedia/xvidcore/Makefile,v
retrieving revision 1.36
diff -u -r1.36 Makefile
--- Makefile    26 May 2010 14:30:36 -0000      1.36
+++ Makefile    18 Jul 2010 08:16:31 -0000
@@ -26,7 +26,7 @@
 #BUILD_DEPENDS+=               yasm>=0.4.0:../../devel/yasm
-.if !empty(PKGSRC_COMPILER:Msunpro)
+.if $(OPSYS) == "SunOS"
 CFLAGS+=               -D__inline=inline
 SUBST_CLASSES+=                ld
 SUBST_MESSAGE.ld=      Fixing linker arguments for Solaris

Home | Main Index | Thread Index | Old Index