Commit 9299be0c authored by Chong Yidong's avatar Chong Yidong
Browse files

(LD_SWITCH_SYSTEM): Remove /usr/pkg/lib and /usr/pkg/lib from

the library search path.
(LD_SWITCH_X_DEFAULT): New macro.
parent 6a022bd9
......@@ -21,13 +21,18 @@
#undef LD_SWITCH_SYSTEM
#ifdef __ELF__
/* Han Boetes <han@mijncomputer.nl> 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 <han@mijncomputer.nl> says this
is necessary, otherwise Emacs dumps core on elf systems. */
#define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_tmp -Z
#else
/* The version of gcc on OpenBSD doesn't search /usr/local/lib by
default. */
#define LD_SWITCH_X_DEFAULT -L/usr/local/lib
#define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_tmp -L/usr/pkg/lib -L/usr/local/lib
#else
#define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_tmp
#define LD_SWITCH_X_DEFAULT -L/usr/local/lib
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment