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

Re: Emacs current vs pthread



> SUSv3 によると、sys/types.h が pthread_*_t の型を定義すること自体、問
> 題ないようです。
> 
> 	http://www.opengroup.org/onlinepubs/009695399/basedefs/sys/types.h.html

そうなんですか。ありがとうございます。

> > 次に、
> > 
> > 2) native の pthread をリンクさせて Emacs current を make するにはどう
> >    すればいいか?
> 
> うーん。ちょっと私からはアイデアはありません。

結局、以下のように修正して、src/ から /usr/include/pthread.h と
/usr/lib/libpthread.so にシンボリックリンクを張ることにしました。

ところで、パッチを見ると分るように、/usr/local が残っていますけど、これ
は Emacs 本家に消してもらうようにお願いする方がいいですか?

--かず

Index: src/s/netbsd.h
===================================================================
RCS file: /cvsroot/emacs/emacs/src/s/netbsd.h,v
retrieving revision 1.41
diff -c -r1.41 netbsd.h
*** src/s/netbsd.h	1 Sep 2003 15:45:58 -0000	1.41
--- src/s/netbsd.h	17 Dec 2004 05:52:04 -0000
***************
*** 85,98 ****
     says where to find X windows at run time.  We convert it to a -rpath option
     which is what OSF1 uses.  */
  #define LD_SWITCH_SYSTEM_tmp `echo LD_SWITCH_X_SITE_AUX | sed -e 's/-R/-Wl,-rpath,/'`
! #define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_tmp -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib
  
  /* The following is needed to make `configure' find Xpm, Xaw3d and
     image include and library files if using /usr/bin/gcc.  That
     compiler seems to be modified to not find headers in
     /usr/local/include or libs in /usr/local/lib by default.  */
  
! #define C_SWITCH_SYSTEM -I/usr/X11R6/include -I/usr/pkg/include -I/usr/local/include -L/usr/pkg/lib -L/usr/local/lib
  
  /* Link temacs with -z nocombreloc so that unexec works right, whether or
     not -z combreloc is the default.  GNU ld ignores unknown -z KEYWORD
--- 85,98 ----
     says where to find X windows at run time.  We convert it to a -rpath option
     which is what OSF1 uses.  */
  #define LD_SWITCH_SYSTEM_tmp `echo LD_SWITCH_X_SITE_AUX | sed -e 's/-R/-Wl,-rpath,/'`
! #define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_tmp -Wl,-rpath,. -L. -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib
  
  /* The following is needed to make `configure' find Xpm, Xaw3d and
     image include and library files if using /usr/bin/gcc.  That
     compiler seems to be modified to not find headers in
     /usr/local/include or libs in /usr/local/lib by default.  */
  
! #define C_SWITCH_SYSTEM -I. -I/usr/X11R6/include -I/usr/pkg/include -L. -L/usr/pkg/lib
  
  /* Link temacs with -z nocombreloc so that unexec works right, whether or
     not -z combreloc is the default.  GNU ld ignores unknown -z KEYWORD