Changeset 37603 for main


Ignore:
Timestamp:
2023-04-04T19:37:34+12:00 (13 months ago)
Author:
anupama
Message:

Attempting to set CFLAGS to contain the recent Wno-error=implicit-function-declaration in makegs2.sh for all GS2 compilation, not just in release-kits compilation, to convert compile errors about missing extern function declarations back into warnings on Darwin machines. This appeared to work to compile GS3 (the release-kit couldn't get past a different, new error about zconst compiling up build-src/zlib, but a similar change in the release-kits is to be removed to avoid duplication). CXXFLAGS won't need to be set to contain this flag too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/makegs2.sh

    r35534 r37603  
    5151#  echo "64 bit unix system, incl -fPIC in CFLAGS so it is now: $CFLAGS"
    5252#fi
     53
     54# Ever since around MacOS version Monterey, warnings about functions not pre-declared with extern
     55# are turned into errors instead when compiling. We want them behaving like warnings again.
     56# To do so, we set -Wno-error=implicit-function-declaration
     57if test "$GSDLOS" = "darwin"; then
     58    if test "x$CFLAGS" = "x" ; then
     59    CFLAGS="-Wno-error=implicit-function-declaration"
     60    else
     61    CFLAGS="-Wno-error=implicit-function-declaration $CFLAGS"
     62    fi
     63    export CFLAGS
     64fi
    5365
    5466# Compile by chaining the commands with && so it stops at that stage after an error
Note: See TracChangeset for help on using the changeset viewer.