Changeset 37600


Ignore:
Timestamp:
2023-04-04T18:19:56+12:00 (13 months ago)
Author:
anupama
Message:

Attempting to set CFLAGS to contain the recent Wno-error=implicit-function-declaration in gs3-devel.sh for all GS3 compilation, not just in release-kits compilation, to convert compile errors about missing extern function declarations back into warnigns on Darwin machines. If this works to compile the release-kit without the similar change in the release-kits, CXXFLAGS won't need to be set to contain this flag too, but makegs2.sh for GS2 compilation will need this adjustment probably and it will need to be removed from the rk2 release-kit compile.xml file also

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/gs3-devel.sh

    r28900 r37600  
    1111fi
    1212
     13# Ever since around MacOS version Monterey, warnings about functions not pre-declared with extern
     14# are turned into errors instead when compiling. We want them behaving like warnings again.
     15# To do so, set we set -Wno-error=implicit-function-declaration
     16if test "$GSDLOS" = "darwin"; then
     17    if test "x$CFLAGS" = "x" ; then
     18    CFLAGS="-Wno-error=implicit-function-declaration"
     19    else
     20    CFLAGS="-Wno-error=implicit-function-declaration $CFLAGS"
     21    fi
     22    export CFLAGS
     23fi
    1324
    1425if test "x$gsopt_noexts" != "x1" ; then
Note: See TracChangeset for help on using the changeset viewer.