comparison src/s/sol2-static.h @ 0:376386a54a3c r19-14

Import from CVS: tag r19-14
author cvs
date Mon, 13 Aug 2007 08:45:50 +0200
parents
children 538048ae2ab8
comparison
equal deleted inserted replaced
-1:000000000000 0:376386a54a3c
1 /* Synched up with: Not in FSF. */
2
3 #ifndef DONT_INCLUDE_SOL2_H
4 #include "sol2.h"
5 #endif
6
7 /* Force static linking */
8 /* Here is how to find X Windows. The -R option says where
9 to find X windows at run time. */
10 #undef LD_SWITCH_SYSTEM
11 #ifndef __GNUC__
12 # ifdef USE_LCC
13 # define LD_SWITCH_SYSTEM -R /usr/openwin/lib -Bstatic
14 # else
15 # define LD_SWITCH_SYSTEM -R/usr/openwin/lib -Bstatic
16 #endif
17 #else /* GCC */
18 /* jwz: note that we need "-Xlinker -Bstatic" and not just "-static" */
19 #define LD_SWITCH_SYSTEM -Xlinker -R/usr/openwin/lib -Xlinker -Bstatic
20 #endif /* GCC */
21
22 /* static linking and Solaris don't mix real well */
23 #undef LIB_STANDARD
24 #ifndef __GNUC__
25 # ifdef I18N4
26 # define LIB_STANDARD -lw -Bdynamic -lc -ldl -Bstatic
27 # else /* !I18N4 */
28 # define LIB_STANDARD -lw -lc -Bdynamic -ldl -Bstatic
29 # endif /* !I18N4 */
30 #else
31 # define LIB_STANDARD -lw -lc -Xlinker -Bdynamic -ldl
32 #endif
33
34 #undef LIBS_SYSTEM
35 #ifdef NOT_C_CODE
36 # undef LIBS_SYSTEM
37 # define LIBS_SYSTEM -lsocket -lnsl -lintl -lkvm -lelf -lgen
38 #else
39 # define LIBS_SYSTEM -lsocket -lnsl -lkvm -lelf -lgen
40 #endif