Changes between Version 2 and Version 3 of kOptions
- Timestamp:
- May 17, 2007, 12:32:28 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
kOptions
v2 v3 9 9 * -Zno-autoconv: switch off automatic conversion between a.out and OMF format when linking. 10 10 * -Zomf: compile and link using OMF format instead of a.out. 11 * -Zargs-wild: call {{{_wildcard()}}} (see below) automatically on startup 11 12 12 13 These are mentioned in '''ReleaseNotes.os2''' but not sure what they do exactly: 13 * -Zargs-wild: something with wildcards - call _wildcard (see below) automatically on startup?14 14 * -Zargs-resp: ?? 15 15 * -Zdll-search: ?? 16 16 * -Zhigh-low: ?? 17 * -Zno-fork: turn off the fork()function?17 * -Zno-fork: turn off the {{{fork()}}} function? 18 18 * -Zno-unix: non-unix like mode, affects slash handling and fork()? 19 19 … … 28 28 * -Zstack: set the stack size 29 29 * -Zso: create stand-alone DLL 30 * -Zsys: create stand-alone OS/2 program (no emx.dll) - there's nothing similar for 31 current libc, if you use new gcc with new libc, you always need the libcxxx.dll 30 * ~~-Zsys: create stand-alone OS/2 program (no emx.dll) - there's nothing similar for current libc, if you use new gcc with new libc, you always need the libcxxx.dll~~ 32 31 * -Zsysv-signals: select the `System V' signal processing model 33 32 34 33 Finally, there are a couple of special functions which simplify porting of Unix programs: 35 * _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. BTW, is there code to try and detect the calling shell, to avoid double expansion when a unix shell is used? I seem to remember that EMX did something like that?34 * {{{_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.