#! /bin/sh
#
# This shell script will run make with options so that
# binutils will be built in optimal for OS/2 way
#

make CFLAGS="-O6 -s" \
  libbfd_la_LDFLAGS="-no-undefined -L`pwd`/../libiberty -liberty -release \$(VERSION)" \
  libopcodes_la_LDFLAGS="-no-undefined -L`pwd`/../bfd/.libs -lbfd -release \$(VERSION)"

if [ -f libiberty.a -a -f ibertydll.a ]; then
  mv libiberty.a iberty_s.a
  mv ibertydll.a libiberty.a
fi
