emacs-devel
[Top][All Lists]
Advanced

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

Re: OpenBSD build failure


From: Chong Yidong
Subject: Re: OpenBSD build failure
Date: Wed, 22 Nov 2006 10:19:11 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux)

"Alfred M. Szmidt" <address@hidden> writes:

> The build failure that I reported in the beginning of November wasn't
> fixed (probobly due me not testing the patch).  I have no tested it,
> and emacs builds fine on OpenBSD with it.  It follows Richards
> suggestion to set LD_SWITCH_X_DEFAULT instead of LD_SWITCH_SYSTEM.
> Could someone apply it, please?

Applied.  (So we don't need to include /usr/pkg/lib in the ld switches
at all?)

> 2006-11-02  Alfred M. Szmidt  <address@hidden>  (tiny change)
>
>       * s/openbsd.h (LD_SWITCH_SYSTEM): Remove /usr/pkg/lib and
>       /usr/pkg/lib from the library search path.
>       (LD_SWITCH_X_DEFAULT): New macro.
>
> Index: openbsd.h
> ===================================================================
> RCS file: /cvsroot/emacs/emacs/src/s/openbsd.h,v
> retrieving revision 1.8
> diff -u -p -r1.8 src/s/openbsd.h
> *** src/s/openbsd.h   30 Oct 2006 23:05:35 -0000      1.8
> --- src/s/openbsd.h   2 Nov 2006 14:05:03 -0000
> ***************
> *** 23,33 ****
>   
>   /*  Han Boetes <address@hidden> says this
>       is necessary,  otherwise Emacs dumps core on elf systems.  */
> ! #define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_tmp -Z -L/usr/pkg/lib 
> -L/usr/local/lib
>   
>   #else
>   
> ! #define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_tmp -L/usr/pkg/lib 
> -L/usr/local/lib
>   
>   #endif
>   
> --- 24,40 ----
>   
>   /*  Han Boetes <address@hidden> says this
>       is necessary,  otherwise Emacs dumps core on elf systems.  */
> ! #define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_tmp -Z
> ! 
> ! /* The version of gcc on OpenBSD doesn't search /usr/local/lib by
> !    default.  */
> ! #define LD_SWITCH_X_DEFAULT -L/usr/local/lib
>   
>   #else
>   
> ! #define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_tmp
> ! 
> ! #define LD_SWITCH_X_DEFAULT -L/usr/local/lib
>   
>   #endif




reply via email to

[Prev in Thread] Current Thread [Next in Thread]