source: main/trunk/greenstone3/gs3-devel.sh@ 37600

Last change on this file since 37600 was 37600, checked in by anupama, 13 months ago

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

  • Property svn:executable set to *
File size: 1.3 KB
Line 
1# if this file is executed, /bin/sh is used, as we don't start with #!
2# this should work under ash, bash, zsh, ksh, sh style shells.
3
4source ./gs3-setup.sh
5
6
7if test -e gs2build/devel.bash ; then
8 echo ""
9 echo "Sourcing gs2build/devel.bash"
10 cd gs2build ; source ./devel.bash ; cd ..
11fi
12
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
24
25if test "x$gsopt_noexts" != "x1" ; then
26 if test -e ext ; then
27 for gsdl_ext in ext/* ; do
28 if [ -d $gsdl_ext ] ; then
29 cd $gsdl_ext > /dev/null
30 if test -e gs3-devel.sh ; then
31 source ./gs3-devel.sh
32 elif test -e devel.bash ; then
33 source ./devel.bash
34 fi
35 cd ../..
36 fi
37 done
38 fi
39fi
40
41if test -e local ; then
42 if test -e local/gs3-devel.sh ; then
43 echo ""
44 echo "Sourcing local/gs3-devel.sh"
45 cd local ; source gs3-devel.sh ; cd ..
46 fi
47fi
48
49echo "Adding devel/bin/script to PATH"
50
51export PATH=$PATH:"$GSDL3SRCHOME/devel/bin/script"
52
53echo ""
Note: See TracBrowser for help on using the repository browser.