comparison src/s/sol2-static.h @ 163:0132846995bd r20-3b8

Import from CVS: tag r20-3b8
author cvs
date Mon, 13 Aug 2007 09:43:35 +0200
parents 6b37e6ddd302
children
comparison
equal deleted inserted replaced
162:4de2936b4e77 163:0132846995bd
3 #ifndef DONT_INCLUDE_SOL2_H 3 #ifndef DONT_INCLUDE_SOL2_H
4 #include "sol2.h" 4 #include "sol2.h"
5 #endif 5 #endif
6 6
7 /* Force static linking */ 7 /* Force static linking */
8 /* Here is how to find X Windows. The -R option says where 8 #ifdef NOT_C_CODE
9 to find X windows at run time. */ 9
10 #undef LD_SWITCH_SYSTEM 10 #undef LD_SWITCH_SYSTEM
11 #ifndef __GNUC__ 11 #define LD_SWITCH_SYSTEM "-Bstatic"
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 12
22 /* static linking and Solaris don't mix real well */ 13 /* static linking and Solaris don't mix real well */
23 #undef LIB_STANDARD 14 #undef LIB_STANDARD
24 #ifndef __GNUC__ 15 #ifdef I18N4
25 # ifdef I18N4 16 # define LIB_STANDARD "-lw -Bdynamic -lc -ldl -Bstatic"
26 # define LIB_STANDARD "-lw -Bdynamic -lc -ldl -Bstatic" 17 #else /* !I18N4 */
27 # else /* !I18N4 */ 18 # define LIB_STANDARD "-lw -lc -Bdynamic -ldl -Bstatic"
28 # define LIB_STANDARD "-lw -lc -Bdynamic -ldl -Bstatic" 19 #endif /* !I18N4 */
29 # endif /* !I18N4 */
30 #else
31 # define LIB_STANDARD "-lw -lc -Xlinker -Bdynamic -ldl"
32 #endif
33 20
34 #undef LIBS_SYSTEM 21 #undef LIBS_SYSTEM
35 #ifdef NOT_C_CODE 22 #define LIBS_SYSTEM "-lsocket -lnsl -lelf -lgen"
36 # undef LIBS_SYSTEM 23
37 # define LIBS_SYSTEM "-lsocket -lnsl -lintl -lelf -lgen" 24 #endif /* NOT_C_CODE */
38 #else
39 # define LIBS_SYSTEM "-lsocket -lnsl -lelf -lgen"
40 #endif