]> git.eshelyaron.com Git - emacs.git/commitdiff
(LD_SWITCH_SYSTEM): Remove /usr/pkg/lib and /usr/pkg/lib from
authorChong Yidong <cyd@stupidchicken.com>
Wed, 22 Nov 2006 15:17:47 +0000 (15:17 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Wed, 22 Nov 2006 15:17:47 +0000 (15:17 +0000)
the library search path.
(LD_SWITCH_X_DEFAULT): New macro.

src/s/openbsd.h

index baba95a2b4be30eec92a58751e8046712ff88df8..3b996de70593d6b1b31d3c95024a6696975d542c 100644 (file)
 #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