diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index dd65c1592..66944946c 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -59,7 +59,6 @@ jobs: - name: bootstrap run: | - sed -i '' 's/-undefined suppress//g' configure.ac ./build_aux/bootstrap install - name: Build environment setup diff --git a/ChangeLog b/ChangeLog index c15078a52..ab3abd8c0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,11 @@ * configure.ac: replace AC_ARG_VAR by AC_SUBST where appropriate +2024-05-14 David Declerck + + * configure.ac: update flags for building dynamic libraries on macOS + (helps fixing testsuite issues on recent macOS versions) + 2023-04-25 Simon Sobisch * configure.ac: try to error on warnings during checks, cleanup of resulting diff --git a/NEWS b/NEWS index cbf57a092..5bd8e0955 100644 --- a/NEWS +++ b/NEWS @@ -76,6 +76,8 @@ NEWS - user visible changes -*- outline -*- where the old default GnuCOBOL data files could be unusable if copied between systems of different hardware architecture. +** use the "default" -shared flag to build dynamic libraries on macOS + so as to fix testuite issues with recent macOS versions ** dialect option to allow ref-mod with zero-length (active with -std=default), with runtime checks enabled; also set by directives diff --git a/configure.ac b/configure.ac index 213758bda..d194103fa 100644 --- a/configure.ac +++ b/configure.ac @@ -2439,7 +2439,7 @@ if test "$COB_USES_CLANG_ONLY" = yes; then # don't warn for untyped function call - only possible if the interal repository would be enforced curr_cflags="$CFLAGS" CFLAGS="$CFLAGS -Wdeprecated-non-prototype $ERRWARN" - AC_MSG_CHECKING([for need to suppress clang ürototype warning]) + AC_MSG_CHECKING([for need to suppress clang prototype warning]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[return 0;]])], [COB_CFLAGS="$COB_CFLAGS -Wno-deprecated-non-prototype"; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])]) @@ -2507,7 +2507,7 @@ case $host_os in fi #COB_FIX_LIB="" ;; - darwin* | rhapsody*) + rhapsody*) if test "$COB_USES_GCC" = yes; then COB_SHARED_OPT="-bundle -flat_namespace -undefined suppress" fi diff --git a/libcob/fextfh.c b/libcob/fextfh.c index 715e4081f..a7cfec3e1 100644 --- a/libcob/fextfh.c +++ b/libcob/fextfh.c @@ -1367,7 +1367,7 @@ EXTFH (unsigned char *opcode, FCD3 *fcd) } #if !COB_64_BIT_POINTER if (fcd->fcdVer == FCD2_VER) { - int rtnstsn; + int rtnsts; #if 0 int opcd; #endif