Skip to content

Commit

Permalink
For CI building, we need the cross-compiler tools, not atari executables
Browse files Browse the repository at this point in the history
  • Loading branch information
th-otto committed Jun 27, 2021
1 parent 42320a3 commit 39fafe2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@

export ACLOCAL=aclocal
export AUTOMAKE=automake
CC=m68k-atari-mint-gcc RANLIB=m68k-atari-mint-ranlib ./configure --prefix=/usr --disable-nls --host=m68k-atari-mint --target=m68k-atari-mint && make
# wrong: we need the cross-compiler version here
# CC=m68k-atari-mint-gcc RANLIB=m68k-atari-mint-ranlib ./configure --prefix=/usr --disable-nls --host=m68k-atari-mint --target=m68k-atari-mint && make

CC=gcc ./configure --prefix=/usr --disable-nls --target=m68k-atari-mint

make DESTDIR="${INSTALL_DIR}" install
rm -f "${INSTALL_DIR}/usr/share/info/dir"
rm -rf "${INSTALL_DIR}/usr/include"

find "${INSTALL_DIR}" -type f -perm -a=x -exec m68k-atari-mint-strip -s {} \;
find "${INSTALL_DIR}" -type f \( -name '*.a' -o -name '*.o' \) -exec m68k-atari-mint-strip -S -X -w -N '.L[0-9]*' {} \;
# find "${INSTALL_DIR}" -type f -perm -a=x -exec m68k-atari-mint-strip -s {} \;
# find "${INSTALL_DIR}" -type f \( -name '*.a' -o -name '*.o' \) -exec m68k-atari-mint-strip -S -X -w -N '.L[0-9]*' {} \;

strip ${INSTALL_DIR}/usr/bin/*

0 comments on commit 39fafe2

Please sign in to comment.