Skip to content

Commit

Permalink
Fix MacOS CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeclerck committed May 13, 2024
1 parent 5ba97ae commit 485f3b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

- name: Install packages
run: |
brew install automake help2man texinfo bison berkeley-db@4
brew install automake libtool help2man texinfo bison berkeley-db@4
opt="/usr/local/opt"; \
for d in automake help2man bison texinfo berkeley-db@4; do \
test -d "$opt/$d/bin" && echo "$opt/$d/bin" >> $GITHUB_PATH; \
Expand All @@ -53,18 +53,19 @@ jobs:
echo "NPROC=`sysctl -n hw.ncpu`" >> $GITHUB_ENV
export TERM="vt100"
echo "TERM=$TERM" >> $GITHUB_ENV
- name: configure
run: |
cd _build
export BDB_CFLAGS="-I/opt/homebrew/opt/berkeley-db@4/include"
export BDB_LIBS="-L/opt/homebrew/opt/berkeley-db@4/lib -ldb"
../configure --enable-cobc-internal-checks --enable-hardening --prefix /opt/cobol/gnucobol-gcos --exec-prefix /opt/cobol/gnucobol-gcos
- name: Upload config.log
uses: actions/upload-artifact@v3
with:
name: config.log
path: _build/config.log
# if: failure()
if: always()

- name: make
run: |
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2309,7 +2309,7 @@ case $host_os in
;;
darwin* | rhapsody*)
if test "$COB_USES_GCC" = yes; then
COB_SHARED_OPT="-bundle -flat_namespace -undefined suppress"
COB_SHARED_OPT="-bundle -flat_namespace -Wl,-w -undefined suppress"
fi
;;
hpux*)
Expand Down

0 comments on commit 485f3b1

Please sign in to comment.