comparison src/s/sol2-static.h @ 157:6b37e6ddd302 r20-3b5

Import from CVS: tag r20-3b5
author cvs
date Mon, 13 Aug 2007 09:40:41 +0200
parents 538048ae2ab8
children 0132846995bd
comparison
equal deleted inserted replaced
156:60baf0b43294 157:6b37e6ddd302
8 /* Here is how to find X Windows. The -R option says where 8 /* Here is how to find X Windows. The -R option says where
9 to find X windows at run time. */ 9 to find X windows at run time. */
10 #undef LD_SWITCH_SYSTEM 10 #undef LD_SWITCH_SYSTEM
11 #ifndef __GNUC__ 11 #ifndef __GNUC__
12 # ifdef USE_LCC 12 # ifdef USE_LCC
13 # define LD_SWITCH_SYSTEM -R /usr/openwin/lib -Bstatic 13 # define LD_SWITCH_SYSTEM "-R /usr/openwin/lib -Bstatic"
14 # else 14 # else
15 # define LD_SWITCH_SYSTEM -R/usr/openwin/lib -Bstatic 15 # define LD_SWITCH_SYSTEM "-R/usr/openwin/lib -Bstatic"
16 #endif 16 #endif
17 #else /* GCC */ 17 #else /* GCC */
18 /* jwz: note that we need "-Xlinker -Bstatic" and not just "-static" */ 18 /* jwz: note that we need "-Xlinker -Bstatic" and not just "-static" */
19 #define LD_SWITCH_SYSTEM -Xlinker -R/usr/openwin/lib -Xlinker -Bstatic 19 #define LD_SWITCH_SYSTEM "-Xlinker -R/usr/openwin/lib -Xlinker -Bstatic"
20 #endif /* GCC */ 20 #endif /* GCC */
21 21
22 /* static linking and Solaris don't mix real well */ 22 /* static linking and Solaris don't mix real well */
23 #undef LIB_STANDARD 23 #undef LIB_STANDARD
24 #ifndef __GNUC__ 24 #ifndef __GNUC__
25 # ifdef I18N4 25 # ifdef I18N4
26 # define LIB_STANDARD -lw -Bdynamic -lc -ldl -Bstatic 26 # define LIB_STANDARD "-lw -Bdynamic -lc -ldl -Bstatic"
27 # else /* !I18N4 */ 27 # else /* !I18N4 */
28 # define LIB_STANDARD -lw -lc -Bdynamic -ldl -Bstatic 28 # define LIB_STANDARD "-lw -lc -Bdynamic -ldl -Bstatic"
29 # endif /* !I18N4 */ 29 # endif /* !I18N4 */
30 #else 30 #else
31 # define LIB_STANDARD -lw -lc -Xlinker -Bdynamic -ldl 31 # define LIB_STANDARD "-lw -lc -Xlinker -Bdynamic -ldl"
32 #endif 32 #endif
33 33
34 #undef LIBS_SYSTEM 34 #undef LIBS_SYSTEM
35 #ifdef NOT_C_CODE 35 #ifdef NOT_C_CODE
36 # undef LIBS_SYSTEM 36 # undef LIBS_SYSTEM
37 # define LIBS_SYSTEM -lsocket -lnsl -lintl -lelf -lgen 37 # define LIBS_SYSTEM "-lsocket -lnsl -lintl -lelf -lgen"
38 #else 38 #else
39 # define LIBS_SYSTEM -lsocket -lnsl -lelf -lgen 39 # define LIBS_SYSTEM "-lsocket -lnsl -lelf -lgen"
40 #endif 40 #endif