Mercurial > hg > octave-lyh
changeset 8644:fac8c78b4fb9
configure.in: fix shared library definitions for Cygwin and MinGW
author | Marco Atzeri <marco_atzeri@yahoo.it> |
---|---|
date | Fri, 30 Jan 2009 14:43:46 -0500 |
parents | 92e193030b77 |
children | 579f1f54cc3a |
files | ChangeLog configure.in |
diffstat | 2 files changed, 12 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-01-30 Marco Atzeri <marco_atzeri@yahoo.it> + + * configure.in (SHLLIBPRE, SHLBINPRE): Fix definitions for Cygwin. + (SHLEXT, SHLLIB, SHLBIN, SONAME_FLAGS): Fix definitions for Cygwin + and MinGW. + 2009-01-30 Benjamin Lindner <lindnerb@users.sourceforge.net> * configure.in: Add -lgdi32 to LIBS on *-*-msdosmsvc* and
--- a/configure.in +++ b/configure.in @@ -1240,13 +1240,16 @@ case "$canonical_host_type" in *-*-cygwin*) LIBPRE=cyg - SHLLIBPRE=lib - SHLBINPRE=cyg + SHLLIBPRE=cyg + SHLBINPRE=lib ;; esac + SHLEXT=dll + SHLLIB=dll.a + SHLBIN=a DL_LDFLAGS="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc" SH_LDFLAGS="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-auto-image-base" - SONAME_FLAGS='-Wl,--out-implib=$(SHLLIBPRE)$(basename $@)$(SHLLIB)' + SONAME_FLAGS='-Wl,--out-implib=$(patsubst $(SHLLIBPRE)%,$(SHLBINPRE)%,$@).a' ;; *-*-msdosmsvc)