aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/s/openbsd.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/s/openbsd.h b/src/s/openbsd.h
index baba95a2b4b..3b996de7059 100644
--- a/src/s/openbsd.h
+++ b/src/s/openbsd.h
@@ -21,13 +21,18 @@
21#undef LD_SWITCH_SYSTEM 21#undef LD_SWITCH_SYSTEM
22#ifdef __ELF__ 22#ifdef __ELF__
23 23
24/* Han Boetes <han@mijncomputer.nl> says this 24 /* Han Boetes <han@mijncomputer.nl> says this
25 is necessary, otherwise Emacs dumps core on elf systems. */ 25 is necessary, otherwise Emacs dumps core on elf systems. */
26#define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_tmp -Z -L/usr/pkg/lib -L/usr/local/lib 26#define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_tmp -Z
27 27
28#else 28/* The version of gcc on OpenBSD doesn't search /usr/local/lib by
29 default. */
30#define LD_SWITCH_X_DEFAULT -L/usr/local/lib
29 31
30#define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_tmp -L/usr/pkg/lib -L/usr/local/lib 32#else
33
34#define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_tmp
35#define LD_SWITCH_X_DEFAULT -L/usr/local/lib
31 36
32#endif 37#endif
33 38