# HG changeset patch # User Chong Yidong # Date 1164208667 0 # Node ID 8a39f8452a5bd4114efec5690c894e6ccb5d75f9 # Parent 92f9d0430fabafe42a77b401b07228d94a3c4014 (LD_SWITCH_SYSTEM): Remove /usr/pkg/lib and /usr/pkg/lib from the library search path. (LD_SWITCH_X_DEFAULT): New macro. diff -r 92f9d0430fab -r 8a39f8452a5b src/s/openbsd.h --- a/src/s/openbsd.h Wed Nov 22 15:15:58 2006 +0000 +++ b/src/s/openbsd.h Wed Nov 22 15:17:47 2006 +0000 @@ -21,13 +21,18 @@ #undef LD_SWITCH_SYSTEM #ifdef __ELF__ -/* Han Boetes 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 + /* Han Boetes 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 -L/usr/pkg/lib -L/usr/local/lib + +#define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_tmp +#define LD_SWITCH_X_DEFAULT -L/usr/local/lib #endif