Changes between Version 4 and Version 5 of kOptions
- Timestamp:
- Aug 1, 2007, 4:44:56 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
kOptions
v4 v5 1 GCC on OS/2 supports several extra options. They allstart with -Z. With the exception of -Zomf (others?) they are affecting the linking.1 GCC on OS/2 supports several extra options. Most start with -Z. With the exception of -Zomf (others?) they are affecting the linking. 2 2 3 3 * -Zcrtdll: link the C library dynamically … … 8 8 * -Zmap: tell linker or emxbind to create a .map file that contains the addresses of all symbols 9 9 * -Zno-autoconv: switch off automatic conversion between a.out and OMF format when linking. 10 * -Zautoconv: switch on automatic conversion between a.out and OMF format when linking. 10 11 * -Zomf: compile and link using OMF format instead of a.out. 11 12 * -Zargs-wild: call {{{_wildcard()}}} (see below) automatically on startup 13 * -Zdll-search: Enables dlls as valid libraries. (default disabled) 14 * -Zsym: Invoke mapsym.cmd on the mapfile to produce a .sym file. Requires -Zmap 15 These may not be OS/2 specific 16 * -Bstatic, -non_shared, -dn, -static: Link with static libraries. 17 * -Bshared, -call_shared, -dy: Link with shared libraries. (default) 12 18 13 19 These are mentioned in '''ReleaseNotes.os2''' but not sure what they do exactly: 14 20 * -Zargs-resp: ?? 15 * -Zdll-search: ??16 21 * -Zhigh-low: ?? 17 22 * -Zno-fork: turn off the {{{fork()}}} function? … … 31 36 * -Zsysv-signals: select the `System V' signal processing model 32 37 38 There are also various environmental variables that affect the linker type. 39 (from the output of emxomfld 0.6.3) 40 41 Environment variables: 42 EMXOMFLD_TYPE: 43 The type of linker we're using. Values: WLINK, VAC365, VAC308, LINK386. 44 WLINK wlink.exe from Open Watcom v1.5 or later. 45 VAC365 ilink.exe from IBM C and C++ Compilers for OS/2 v3.6 or later. 46 VAC308 ilink.exe from Visual Age for C++ v3.08. 47 LINK386 link386 form OS/2 install or DDK. 48 EMXOMFLD_LINKER: 49 Name of the linker to use and optionally extra parameters. Spaces in the 50 linker name or path is not supported. Quotes are not supported either. 51 The default values for these two variables are VAC365 and ilink.exe. 52 EMXOMFLD_RC_TYPE: 53 The type of resource compiler we're using. Values: RC,WRC. 54 RC rc.exe as shipped with OS/2 or found in the Toolkit 55 WRC wrc.exe from Open Watcom v1.6 or later. 56 EMXOMFLD_RC: 57 Name of the resource compiler to use and optionally extra parameters. 58 Spaces or quotes in the name or path are not supported. 59 The default values for these two variables are RC and rc.exe. 60 33 61 Finally, there are a couple of special functions which simplify porting of Unix programs: 34 62 * {{{_wildcard (int *argc, char ***argv)}}}: Same as in EMX, i.e. it expands it's arguments like a unix shell would do (but OS/2 cmd.exe doesn't), so you typically want to use this when porting a unix command line application. Instead of adding this to a program, compilation with -Zargs-wild can be used.