2003-02-25 Theodore A. Roth * Makefile.am: * configure.ac: Index: Makefile.am =================================================================== RCS file: /cvsroot/avrdude/avrdude/Makefile.am,v retrieving revision 1.9 diff -u -r1.9 Makefile.am --- Makefile.am 25 Feb 2003 00:57:27 -0000 1.9 +++ Makefile.am 25 Feb 2003 17:20:35 -0000 @@ -29,6 +29,8 @@ bin_PROGRAMS = avrdude +avrdude_LDFLAGS = @EXTRA_LDFLAGS@ + avrdude_SOURCES = \ config_gram.y \ lexer.l \ Index: configure.ac =================================================================== RCS file: /cvsroot/avrdude/avrdude/configure.ac,v retrieving revision 1.2 diff -u -r1.2 configure.ac --- configure.ac 25 Feb 2003 00:57:27 -0000 1.2 +++ configure.ac 25 Feb 2003 17:20:35 -0000 @@ -103,5 +103,15 @@ AC_MSG_RESULT([$DEFAULT_SER_PORT]) AC_SUBST(DEFAULT_SER_PORT, $DEFAULT_SER_PORT) +case $target in + *-*-cygwin*) + EXTRA_LDFLAGS="-static" + ;; + *) + ;; +esac + +AC_SUBST(EXTRA_LDFLAGS, $EXTRA_LDFLAGS) + AC_CONFIG_FILES([Makefile avrdude.conf]) AC_OUTPUT