# fss-0002

old_main:
  ./configure LDFLAGS="-pthread -ldl -lutil -lncurses -ltinfo -lintl" $CONF --enable-ipv6 --with-cxx=g++ --with-threads
  sed -i -e "s|LINKFORSHARED=\t|&-lncurses -pthread |g" Makefile
  sed -i -e "s|BASECFLAGS=\t -fno-strict-aliasing|& $CFLAGS|" Makefile
  sed -i -e 's|-O3|-O2|g' Makefile{,.pre}
  make LIBS="-pthread -ldl  -lutil -lncurses -ltinfo -lintl" LDFLAGS="-pthread -ldl  -lutil -lncurses -ltinfo -lintl"
  make install

main:
  if [[ $glibc_host == "yes" ]] ; ./configure LDFLAGS="-pthread -ldl -lutil -lncurses -ltinfo -lintl" $CONF --with-threads --without-pymalloc PATH=${TO}bin LD_LIBRARY_PATH=${TO}lib ; fi
  if [[ $glibc_host != "yes" ]] ; ./configure LDFLAGS="-pthread -ldl -lutil -lncurses -ltinfo -lintl" $CONF --with-threads --without-pymalloc ; fi
  sed -i -e "s|LINKFORSHARED=\t|&-lncurses -pthread |g" Makefile
  sed -i -e "s|BASECFLAGS=\t -fno-strict-aliasing|& $CFLAGS|" Makefile
  sed -i -e 's|-O3|-O2|g' Makefile{,.pre}
  if [[ $glibc_host == "yes" ]] ; make PATH=${TO}bin LD_LIBRARY_PATH=${TO}lib ; else make ; fi
  if [[ $glibc_host == "yes" ]] ; make PATH=${TO}bin LD_LIBRARY_PATH=${TO}lib install ; else make install ; fi
