comparison src/s/netbsd.h @ 39331:8dc9a5e60b4f

(C_SWITCH_SYSTEM): Add. (LD_SWITCH_SYSTEM): Include /usr/local/lib.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 18 Sep 2001 11:30:34 +0000
parents 76076c5b2009
children 0ad6378e66d4
comparison
equal deleted inserted replaced
39330:e4caf503efef 39331:8dc9a5e60b4f
74 74
75 #ifdef __ELF__ 75 #ifdef __ELF__
76 /* Here is how to find X Windows. LD_SWITCH_X_SITE_AUX gives an -R option 76 /* Here is how to find X Windows. LD_SWITCH_X_SITE_AUX gives an -R option
77 says where to find X windows at run time. We convert it to a -rpath option 77 says where to find X windows at run time. We convert it to a -rpath option
78 which is what OSF1 uses. */ 78 which is what OSF1 uses. */
79 #define LD_SWITCH_SYSTEM `echo LD_SWITCH_X_SITE_AUX | sed -e 's/-R/-Wl,-rpath,/'` 79 #define LD_SWITCH_SYSTEM_tmp `echo LD_SWITCH_X_SITE_AUX | sed -e 's/-R/-Wl,-rpath,/'`
80 #define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_tmp /usr/local/lib
81
82 /* The following is needed to make `configure' find Xpm, Xaw3d and
83 image include and library files if using /usr/bin/gcc. That
84 compiler seems to be modified to not find headers in
85 /usr/local/include or libs in /usr/local/lib by default. */
86
87 #define C_SWITCH_SYSTEM -I/usr/X11R6/include -I/usr/local/include -L/usr/local/lib
88
80 #endif /* __ELF__ */ 89 #endif /* __ELF__ */
81 90
82 /* On post 1.3 releases of NetBSD, gcc -nostdlib also clears 91 /* On post 1.3 releases of NetBSD, gcc -nostdlib also clears
83 the library search parth, i.e. it won't search /usr/lib 92 the library search parth, i.e. it won't search /usr/lib
84 for libc and friends. Using -nostartfiles instead avoids 93 for libc and friends. Using -nostartfiles instead avoids