pkgsrc-Bugs archive

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

Re: pkg/42865



The following reply was made to PR pkg/42865; it has been noted by GNATS.

From: =?ISO-8859-1?Q?J=F6rn_Clausen?= <joern.clausen%uni-bielefeld.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/42865
Date: Tue, 27 Sep 2011 17:04:08 +0200

 Andreas Tobler did a thorough analysis of this problem, and he suggested 
 two possible fixes:
 
 Either in devel/libffi
 
 --- Makefile    2011/09/27 09:37:15     1.1
 +++ Makefile    2011/09/27 09:44:38
 @@ -42,4 +42,8 @@
   LIBS+= -lm68k
   .endif
 
 +.if !empty(MACHINE_PLATFORM:MSunOS-*-i386) && !empty(CC_VERSION:Mgcc-[23]*)
 +CPPFLAGS += -D__PIC__
 +.endif
 +
   .include "../../mk/bsd.pkg.mk"
 
 I have tested this and can confirm that libffi now compiles.
 
 Or this patch against GCC:
 
 --- gcc/config/sol2.h    (revision 178719)
 +++ gcc/config/sol2.h    (working copy)
 @@ -73,6 +73,11 @@
           builtin_define ("_LARGEFILE64_SOURCE=1");    \
           builtin_define ("__EXTENSIONS__");        \
         }                        \
 +    if (flag_pic)                                   \
 +      {                        \
 +        builtin_define ("__PIC__");            \
 +        builtin_define ("__pic__");            \
 +      }                        \
       TARGET_SUB_OS_CPP_BUILTINS();            \
       } while (0)
 
 which I haven't tested and can't comment on.
 
 -- 
   Jörn Clausen                             
joern.clausen%uni-bielefeld.de@localhost
   Hochschulrechenzentrum                 http://www.uni-bielefeld.de/hrz/
   Universität Bielefeld
 


Home | Main Index | Thread Index | Old Index