default_pre_build                 &&
cd $SOURCE_DIRECTORY              &&
sedit  "s/-O2/$CFLAGS/"  Makefile &&
if list_find "$OPTS" "NO_PAM"
then
  message "seding Makefile to disable PAM and enable shadow" &&
  # shadow code in vlock conflicts with pam code
  # but it's fine with or without shadow passwords and current glibc
  sedit 's/^\(CFLAGS =.*\)-DUSE_PAM/\1 -DSHADOW_PWD/' Makefile &&
  sedit 's/^\(LDFLAGS =.*\)-ldl -lpam -lpam_misc/\1-lcrypt/' Makefile
fi
