| 1 |
CHANGES |
| 2 |
|
| 3 |
2.6.12 2026-1-23 |
| 4 |
Link: fix runpath. |
| 5 |
Link: MacOS: set shared library id with @rpath. |
| 6 |
Split application compiler flags from application flags. |
| 7 |
|
| 8 |
2.6.11 2025-11-10 |
| 9 |
Link: move system libraries to late in the link. |
| 10 |
|
| 11 |
2.6.10 2025-10-29 |
| 12 |
Env: libname: fix. |
| 13 |
Env: libname: do not revert lib64 to lib if symlink. |
| 14 |
Env: addcflag: update test for -Wno- flags. |
| 15 |
|
| 16 |
2.6.9 2025-8-26 |
| 17 |
Env: libname |
| 18 |
|
| 19 |
2.6.8 2025-2-23 |
| 20 |
Env: NetBSD Fix. |
| 21 |
Env: pkg-config cleanup. |
| 22 |
|
| 23 |
2.6.7 2025-2-21 |
| 24 |
Env: Add flags and paths for HP-UX ia64. |
| 25 |
|
| 26 |
2.6.6 2025-2-18 |
| 27 |
Env: Add some additional paths to check for pkg-config files. |
| 28 |
Env: Update paths for MacOS, NetBSD. |
| 29 |
|
| 30 |
2.6.5 2025-2-8 |
| 31 |
Env: Fixed cflags processing. |
| 32 |
|
| 33 |
2.6.4 2025-2-5 |
| 34 |
CC: Added 'staticlib' directive. |
| 35 |
CC: Added 'header_reset' directive. |
| 36 |
Env: Added 'addincpath' and 'addldsrchpath' directives. |
| 37 |
Env: Fixed addldpath/addcflags to handle multiple arguments. |
| 38 |
Env: Added 'sharedliblinkflag' and 'staticliblinkflag'. |
| 39 |
Env: Added 'shared_flags' directive that runs all shared options. |
| 40 |
Env: Remove non-working cache checks. |
| 41 |
New directive: 'env' : environment variable check. |
| 42 |
Options: Removed. |
| 43 |
mkcl.sh: Handle runpath. |
| 44 |
mkcl.sh: Fix ldpaths/runpath generation. |
| 45 |
units/c-main.sh: Remove define of _ for ancient C compilers. |
| 46 |
units/env-cc: AIX: Correctly check cflags. |
| 47 |
units/env-cc: Fixed clang issue for shared linking. |
| 48 |
units/env-cc: Fixed test for C flags. |
| 49 |
capabilities: test for grep -E / egrep. |
| 50 |
Remove D language. |
| 51 |
Merge env/c namespaces. |
| 52 |
|
| 53 |
2.6.3 2021-1-30 |
| 54 |
Fix 'pkg libs' directive. |
| 55 |
|
| 56 |
2.6.2 2021-1-30 |
| 57 |
Add 'pkg include' directive. |
| 58 |
Update documentation. |
| 59 |
|
| 60 |
2.6.1 2020-9-25 |
| 61 |
Fix PKG_CONFIG_PATH handling. |
| 62 |
|
| 63 |
2.6 2020-9-25 |
| 64 |
Add support for pkg-config --cflags and pkg-config --libs |
| 65 |
|
| 66 |
2.5 2020-7 |
| 67 |
Rework domath function so that it can be used with osh. |
| 68 |
|
| 69 |
2.4 2020-6-13 |
| 70 |
Added 'standard_cc' (env-cc), 'standard_system' (env-system) commands. |
| 71 |
Fixed 'defined', 'size' directives so that they will |
| 72 |
work with a cross-compile (MKC_CROSS=Y must be defined). |
| 73 |
Added examples/helloworld. |
| 74 |
Added Makefile.inc for simple builds. |
| 75 |
Made easier to use. |
| 76 |
Move most work files to a sub-directory. |
| 77 |
Fixed AIX shared library linking (xlc and gcc). |
| 78 |
Fixed HP-UX shared library linking. |
| 79 |
Fixed OSF1 (Tru64) shared library linking (cc and gcc). |
| 80 |
Fixed Msys2 and Cygwin shared library linking (clang). |
| 81 |
Tested on 23 platforms. |
| 82 |
|
| 83 |
2.3 [2020-6-3] |
| 84 |
Fixed an issue propogating LDFLAGS_SHARED. |
| 85 |
Fix library check when using g++. |
| 86 |
Propogate CFLAGS_OPTIMIZE and CFLAGS_DEBUG properly to linker. |
| 87 |
Added bin/capabilities.sh script. |
| 88 |
Added yash to the supported scripts list (version 2.48 or later; |
| 89 |
I don't know when its issues were fixed). |
| 90 |
|
| 91 |
2.2 [2020-5-22] |
| 92 |
Added support for oilshell (osh; oilshell.org). |
| 93 |
mkcl.sh will display its messages as a single printf so that |
| 94 |
make -j does not look really weird. |
| 95 |
|
| 96 |
2.1.1 [2019-6-25] |
| 97 |
env-cc: Fix getconf/cflags_system. |
| 98 |
Fix putsnonl function when 'echo' is in use. |
| 99 |
|
| 100 |
2.1.0 [2018-12-27] |
| 101 |
Add test for shell interpolation bug. Use printf if possible |
| 102 |
for POSIX compliance. |
| 103 |
env-cc: Fix cflags_shared. |
| 104 |
env-cc: Pick up all cflags* and ldflags* defaults from the |
| 105 |
environment. |
| 106 |
mkcl.sh: Fix processing of LDFLAGS. |
| 107 |
mkcl.sh: Support .m extension. |
| 108 |
mkcl.sh: Support command line set of env vars (must be quoted). |
| 109 |
env-cc: Add support for DragonFlyBSD. |
| 110 |
env-cc: Add support for pkgconfig files (findpc). |
| 111 |
|
| 112 |
2.0.0 [2018-8-12] |
| 113 |
C: split CFLAGS, LDFLAGS, LIBS into multiple environment |
| 114 |
variables for easier processing. D language is probably broken. |
| 115 |
C: fix shared flags |
| 116 |
C: Various bug fixes for msys2, tru64, etc. |
| 117 |
Clean up interfaces to mkcl.sh, mkstaticlib.sh |
| 118 |
Clean output style for mkc.sh. |
| 119 |
Added compilation log file. |
| 120 |
Added 'findconfig' and 'addconfig' commands for *Config.sh files. |
| 121 |
Removed 'findincludefile' command. |
| 122 |
Remove mksharedlib.sh (now part of mkcl.sh). |
| 123 |
|
| 124 |
1.31 [2018-4-11] |
| 125 |
env-cc: update findincludepath to search more common paths. |
| 126 |
Remove Makefile and MANIFEST from standard distribution. |
| 127 |
|
| 128 |
1.30 [2018-4-10] |
| 129 |
Repo got completely mucked up. Restore lost code. |
| 130 |
C: size: -lintl option for modern libintl.h |
| 131 |
C: printf_long_double : -lintl option for modern libintl.h |
| 132 |
Minor code cleanup. |
| 133 |
Update copyrights. |
| 134 |
|
| 135 |
1.29 [2018-4-6] |
| 136 |
Changed .tar.gz creation to not include tests. |
| 137 |
|
| 138 |
1.28 [2016-8-9] |
| 139 |
Cleaned up some compiler warnings. |
| 140 |
More fixes for msys/mingw. |
| 141 |
|
| 142 |
1.27 [2016-2-22] |
| 143 |
Protected standard definitions from multiple inclusion. |
| 144 |
Fixed ifoption/ifnotoption. |
| 145 |
Removed 'lib' prefix when creating libraries. |
| 146 |
Removed LDFLAGS when creating shared libraries. |
| 147 |
Fixes to run under msys. |
| 148 |
Added printf_long_double test (for mingw). |
| 149 |
Fix cache bug with values ending in '='. |
| 150 |
Fixed args test on mac os x. |
| 151 |
Fixed args test for cygwin. |
| 152 |
|
| 153 |
1.26 [2016-1-6] |
| 154 |
Added yes/no as possible option values. |
| 155 |
Options can be overridden by environment variables. |
| 156 |
|
| 157 |
1.25 [2015-10-18] |
| 158 |
Fix 'using_gnu_ld' environment test. |
| 159 |
Add 'addldflag' to env-cc. |
| 160 |
|
| 161 |
1.24 [2014-2-15] |
| 162 |
Updates for MirOS and Irix. |
| 163 |
Added -Wno-disabled-macro-expansion for clang. |
| 164 |
|
| 165 |
1.23 [19 Jan 2013] |
| 166 |
Added the 'using_clang' environment directive. |
| 167 |
Added default flags for the clang compiler. |
| 168 |
|
| 169 |
1.22 [15 Nov 2012] |
| 170 |
Fixed the display of the define directive. |
| 171 |
Fixed issues where the cache should not be used for XDR types |
| 172 |
and library function arguments. |
| 173 |
Fixed processing of nested if statements. |
| 174 |
|
| 175 |
1.21 [18 Oct 2012] |
| 176 |
Added examples directory. |
| 177 |
clang: add -Wno-unknown-warning-option |
| 178 |
addcflag directive updated to not add the flag if the compiler |
| 179 |
has a warning. |
| 180 |
Fixed read problems with ksh93 93u+. |
| 181 |
Added a work-around for cd problem w/debian ksh93 93u+ (bug #679966). |
| 182 |
Handle __restrict__ on NetBSD 6. |
| 183 |
Remove improper link flags for AIX. Not tested. |
| 184 |
|
| 185 |
1.20 [25 Jan 2012] |
| 186 |
D: rewrite c-typedef extraction. |
| 187 |
D: handle situations where structure is typedef'd and a |
| 188 |
ctypedef directive is issued. |
| 189 |
D: several fixes for C structure extraction. |
| 190 |
D: improved nested structure handling. |
| 191 |
D: basic handling for bitfields in structures. |
| 192 |
D: changed prefix from C_TYP_ to C_NATIVE_ for native c types. |
| 193 |
D: Added the noprefix directive to not add C_ST_, C_TYP_, etc. |
| 194 |
prefixes to the original C language types (but not C_NATIVE_). |
| 195 |
D: Casts are converted. May still be some issues. |
| 196 |
env: Added the source directive. |
| 197 |
D: fixed macro extraction with partial name. |
| 198 |
D: convert the version keyword to version_ |
| 199 |
D: handle multi-line statements better. |
| 200 |
D: added the module directive. |
| 201 |
D: added the substitute directive. |
| 202 |
Minor speed improvements for header extraction. |
| 203 |
D: fixed multiple output files. |
| 204 |
mkc.sh: -comp: fixed to add -c flag when compiling to object w/-o flag. |
| 205 |
mkc.sh: merge -link and -comp. |
| 206 |
D: fixed some D1 conversion issues. |
| 207 |
Fixed if statements with unknown variables. |
| 208 |
D: wrap ctypes in extern |
| 209 |
D: fixed type conversions (followed by asterisk, lone unsigned) |
| 210 |
|
| 211 |
1.19 [20 Nov 2011] |
| 212 |
Created mkc.sh as a single entry point for compiling, linking, |
| 213 |
creating libraries, setting options and finding required libraries. |
| 214 |
Solaris 2.6 /bin/sh is no longer excluded. |
| 215 |
Fixed problem with .vars file not being cleaned on remake. |
| 216 |
D: Rework c-structure extraction. |
| 217 |
D: Better handling of nested structures and typedef'd structures. |
| 218 |
D: Add aliases for c argument types. |
| 219 |
D: revert cache check where it shouldn't be cached. |
| 220 |
D: Add aliases for c basic types (csizes directive). |
| 221 |
Fixed mkreqlib.sh to handle clibs for D. |
| 222 |
Fixed c-declaration test for freebsd. |
| 223 |
Change support for tango library and Dv1. |
| 224 |
Changed env-dc to compile to get D version. |
| 225 |
Changed env-cc and env-dc to pick up standard env variables |
| 226 |
from the options file. This allows the options file to |
| 227 |
keep all configuration data. |
| 228 |
Rearranged directory structure. |
| 229 |
|
| 230 |
1.18 [8 Oct 2011] |
| 231 |
D: C structures are wrapped in extern (C) {} |
| 232 |
(to properly declare functions). |
| 233 |
Fixed multiple output files in the same directory. |
| 234 |
Fixed multiple inclusion tag for C output file. |
| 235 |
Fixed and updated shell locater for runtests.sh. |
| 236 |
Removed -std1 for OSF1 (Tru64). |
| 237 |
Added 'ksh88', 'ksh93' as valid shell names. |
| 238 |
|
| 239 |
1.17 [30 Sep 2011] |
| 240 |
Fixed cmacro directive for D. |
| 241 |
Added cmembertype, cmemberxdr for D. |
| 242 |
Added memberxdr for C. |
| 243 |
Removed rquota_xdr, gqa_uid_xdr. |
| 244 |
Improved documentation. |
| 245 |
Rewrote test suite. |
| 246 |
Fixed 'lib' for D. |
| 247 |
Updated env-cc.sh for SCO OpenServer and UnixWare. |
| 248 |
Fixed structure extraction for HP-UX. |
| 249 |
Various fixes for HP-UX, SCO OpenServer, UnixWare. |
| 250 |
* Shared lib tests fail for HP-UX ansi cc. |
| 251 |
|
| 252 |
1.16 [16 Sep 2011] |
| 253 |
Removed 'di' leftovers. |
| 254 |
Changed internal prefix to 'mkc'. |
| 255 |
Added 'echo' and 'exit' directives. |
| 256 |
Fixed d language tests to be 32/64 bit safe. |
| 257 |
Fixed d language tests for d version 1. |
| 258 |
Fixed d language tests for tango library. |
| 259 |
Added initial support for ldc and tango libraries. |
| 260 |
* On 64-bit, ldc's unions don't match C language sizes. |
| 261 |
* ldc1 doesn't have alias for 'string'. |
| 262 |
* ldc2 tested w/-d flag. |
| 263 |
Tested with dmd1, dmd2, ldc1, ldc2 on 64-bit. |
| 264 |
Tested with dmd1, dmd2, ldc1, ldc2, gdc1, gdc2 on 32-bit. |
| 265 |
|
| 266 |
1.15 [11 Sep 2011] |
| 267 |
Added pdksh in as a valid shell |
| 268 |
Added 'args' directive (C) |
| 269 |
Removed statfs, setmntent, quotactl, getfsstat_type |
| 270 |
(breaks backwards compatibility) |
| 271 |
Added 'addcflags' directive (env) |
| 272 |
Fixed args directive to return valid types (C) |
| 273 |
Fixed cdcl directive to return valid types (D) |
| 274 |
Updated args directive to save return type (C) |
| 275 |
Updated cdcl directive to save return type (D) |
| 276 |
Fixed shell validity tests. |
| 277 |
|
| 278 |
1.14 [22 May 2011] |
| 279 |
Renamed ctypeconv to ctype (breaks backwards compatibility). |
| 280 |
Rewrite ctype check command to use the |
| 281 |
C typedef name, and add an alias. |
| 282 |
Fixed ctype to handle unsigned typedefs correctly. |
| 283 |
Fixed nested structure handling. |
| 284 |
ctypedef will now find function pointer typedefs. |
| 285 |
Made D-C prefixes more consistent (breaks backwards compatibility). |
| 286 |
Added cmacro to convert C macros to functions. |
| 287 |
Merged cdefint and cdefstr to cdefine; made more generic |
| 288 |
(breaks backwards compatibility). |
| 289 |
Added breakdown of arg types for "cdcl args ...". |
| 290 |
|
| 291 |
1.13 [27 Feb 2011] |
| 292 |
Handle gcc __asm__ function renames. |
| 293 |
Update doc for cdcl. |
| 294 |
|
| 295 |
1.12 [16 Feb 2011] |
| 296 |
Added d-ctypeconv check command. |
| 297 |
Renamed d-ctype to d-ctypedef. |
| 298 |
Updated to work with D1. |
| 299 |
More fixes for D, D-C checks. |
| 300 |
|
| 301 |
1.11 [29 Dec 2010] |
| 302 |
Fixed output of "yes with" libraries. |
| 303 |
Rearranged tests and test directories. |
| 304 |
Fixed test subdirectory handling. |
| 305 |
Added c-rquota, c-getfsstat. |
| 306 |
Added unset CDPATH. The output from the cd command |
| 307 |
broke the scripts. |
| 308 |
Added D language (not yet complete). |
| 309 |
Backwards compatibility broken for mklink.sh. |
| 310 |
|
| 311 |
1.10 [22 Jul 2010] |
| 312 |
Renamed reqlibs.txt to mkconfig.reqlibs. |
| 313 |
Breaks backwards compatibility. |
| 314 |
Added support for multiple output files. |
| 315 |
Fixed naming of runtest log files. |
| 316 |
Added mkstaticlib.sh. |
| 317 |
Added mksharedlib.sh: preliminary support for shared libs. |
| 318 |
Added mklink.sh: preliminary |
| 319 |
Added new env-cc vars to support shared libs. |
| 320 |
Added new env-extension vars to support shared libs. |
| 321 |
Bug fix: workaround for ksh93 unable to getcwd() on Solaris. |
| 322 |
Fixed env-extension to match manual page. |
| 323 |
|
| 324 |
1.9 [12 Jul 2010] |
| 325 |
Fixed regression tests to work w/c++. |
| 326 |
Code cleanup. |
| 327 |
|
| 328 |
1.8 [10 Jul 2010] |
| 329 |
Internal code cleanup. |
| 330 |
Modify tests to take -d parameter for description output. |
| 331 |
Stop tests on change of pass number on failure. |
| 332 |
Add check_option. |
| 333 |
Fixed member test so either structs or typedefs can be used. |
| 334 |
Changed member test names to be _mem_struct_s_member or |
| 335 |
_mem_sometype_member. Breaks backwards compatibility. |
| 336 |
|
| 337 |
1.7 [5 Jul 2010] |
| 338 |
Add labels to if statement. |
| 339 |
if statement counter and display. |
| 340 |
|
| 341 |
1.6 [4 Jul 2010] |
| 342 |
Fix getlistofshells() when absolute path. |
| 343 |
Added c-quotactl unit. |
| 344 |
Renamed c-include-time to c-include-conflict, and changed |
| 345 |
how c-include-conflict works. |
| 346 |
Added define, set, setint, setstr, ifoption, ifnotoption, if. |
| 347 |
Added option-file. |
| 348 |
Added mkcsetopt.sh |
| 349 |
|
| 350 |
1.5 [13 May 2010 - separate release] |
| 351 |
Change tmp directory structure and where logs go. |
| 352 |
Fixes for mkconfig.pl to handle absolute paths. |
| 353 |
Remove /bin from path for cygwin (duplicate of /usr/bin). |
| 354 |
Code cleanup. |
| 355 |
|
| 356 |
1.4 (di ver 4.23) [10 May 2010] |
| 357 |
Move -lsun, -lseq out of env-cc.sh |
| 358 |
Update env-cc.sh to handle QNX getconf 'undefined' output. |
| 359 |
Fix cache test (tests.d/cache.sh). |
| 360 |
Fix edit when /bin is symlink (shellfuncs.sh). |
| 361 |
Added test for -n support for shells. |
| 362 |
Added support to mkconfig.sh to munge set output that has $s in it. |
| 363 |
Export shelllist in runtests.sh; more efficient. |
| 364 |
Redo paths in shellfuncs; make sure symlinked paths are present. |
| 365 |
Needed for Tru64, do: export BIN_SH=svr4 beforehand. |
| 366 |
|
| 367 |
1.3 (di ver 4.22) [1 may 2010] |
| 368 |
Use the configuration file and cache to determine the necessary |
| 369 |
libraries to link in rather than linking in all found. |
| 370 |
Change library format to allow better control of link |
| 371 |
tests. |
| 372 |
Change dosubst() to always use sed. It's more reliable. |
| 373 |
|
| 374 |
1.2 (di ver 4.20, 4.21) [12 mar 2010] |
| 375 |
Rewrite mkconfig.sh to use unit scripts and increase performance. |
| 376 |
Add environment units. |
| 377 |
Allow _MKCONFIG_SHELL to override shell. |
| 378 |
|
| 379 |
1.1 (di ver 4.19) [1 Feb 2010] |
| 380 |
Changed format of config.h file. |
| 381 |
Fixed a quoting bug in mkconfig.sh. |
| 382 |
mkconfig enhancements and cleanup. |
| 383 |
|
| 384 |
1.0 (di ver 4.18) [29 Nov 2009] |
| 385 |
Initial coding |