summaryrefslogtreecommitdiff
path: root/src/s/openbsd.h
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2006-11-22 15:17:47 +0000
committerChong Yidong <cyd@stupidchicken.com>2006-11-22 15:17:47 +0000
commit9299be0c24f42a59c7bf3cc06876a25f812cd70e (patch)
tree1b8426ada782c2a87ab1f096ad19dca1a9cbf07c /src/s/openbsd.h
parent6a022bd9a7263efeb748581b4a188004f5823240 (diff)
downloademacs-9299be0c24f42a59c7bf3cc06876a25f812cd70e.tar.gz
(LD_SWITCH_SYSTEM): Remove /usr/pkg/lib and /usr/pkg/lib from
the library search path. (LD_SWITCH_X_DEFAULT): New macro.
Diffstat (limited to 'src/s/openbsd.h')
-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 @@
#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