Commit 1e444b4f authored by Lynn Garren's avatar Lynn Garren
Browse files

just build static libraries for cygwin gcc

parent af618efb
......@@ -193,10 +193,14 @@ g++)
AR="ar"; ARFLAGS="cru"
;;
*-*-cygwin*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall -D_GNU_SOURC"
MY_SHFLAGS="-DPIC"; MY_SHLINK="-shared"; SHEXT=so
MY_SHNAME="-Wl,-soname,"; MY_LD="-Wl,--rpath -Wl,"
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
MY_SHFLAGS="-DPIC"; SHEXT=dll
MY_SHLINK="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive"
MY_SHLINKEXTRA="-Wl,--no-whole-archive"
MY_SHNAME="-Wl,-out-implib="; MY_LD="-Wl,--rpath -Wl,"
AR="ar"; ARFLAGS="cru"
build_static="yes"
build_shared="no"
;;
*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
......@@ -233,10 +237,14 @@ c++)
AR="ar"; ARFLAGS="cru"
;;
*-*-cygwin*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall -D_GNU_SOURC"
MY_SHFLAGS="-DPIC"; MY_SHLINK="-shared"; SHEXT=so
MY_SHNAME="-Wl,-soname,"; MY_LD="-Wl,--rpath -Wl,"
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
MY_SHFLAGS="-DPIC"; SHEXT=dll
MY_SHLINK="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive"
MY_SHLINKEXTRA="-Wl,--no-whole-archive"
MY_SHNAME="-Wl,-out-implib="; MY_LD="-Wl,--rpath -Wl,"
AR="ar"; ARFLAGS="cru"
build_static="yes"
build_shared="no"
;;
*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
......
......@@ -195,10 +195,14 @@ g++)
AR="ar"; ARFLAGS="cru"
;;
*-*-cygwin*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall -D_GNU_SOURC"
MY_SHFLAGS="-DPIC"; MY_SHLINK="-shared"; SHEXT=so
MY_SHNAME="-Wl,-soname,"; MY_LD="-Wl,--rpath -Wl,"
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
MY_SHFLAGS="-DPIC"; SHEXT=dll
MY_SHLINK="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive"
MY_SHLINKEXTRA="-Wl,--no-whole-archive"
MY_SHNAME="-Wl,-out-implib="; MY_LD="-Wl,--rpath -Wl,"
AR="ar"; ARFLAGS="cru"
build_static="yes"
build_shared="no"
;;
*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
......@@ -235,10 +239,14 @@ c++)
AR="ar"; ARFLAGS="cru"
;;
*-*-cygwin*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall -D_GNU_SOURC"
MY_SHFLAGS="-DPIC"; MY_SHLINK="-shared"; SHEXT=so
MY_SHNAME="-Wl,-soname,"; MY_LD="-Wl,--rpath -Wl,"
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
MY_SHFLAGS="-DPIC"; SHEXT=dll
MY_SHLINK="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive"
MY_SHLINKEXTRA="-Wl,--no-whole-archive"
MY_SHNAME="-Wl,-out-implib="; MY_LD="-Wl,--rpath -Wl,"
AR="ar"; ARFLAGS="cru"
build_static="yes"
build_shared="no"
;;
*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
......
......@@ -203,10 +203,14 @@ g++)
AR="ar"; ARFLAGS="cru"
;;
*-*-cygwin*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall -D_GNU_SOURC"
MY_SHFLAGS="-DPIC"; MY_SHLINK="-shared"; SHEXT=so
MY_SHNAME="-Wl,-soname,"; MY_LD="-Wl,--rpath -Wl,"
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
MY_SHFLAGS="-DPIC"; SHEXT=dll
MY_SHLINK="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive"
MY_SHLINKEXTRA="-Wl,--no-whole-archive"
MY_SHNAME="-Wl,-out-implib="; MY_LD="-Wl,--rpath -Wl,"
AR="ar"; ARFLAGS="cru"
build_static="yes"
build_shared="no"
;;
*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
......@@ -243,10 +247,14 @@ c++)
AR="ar"; ARFLAGS="cru"
;;
*-*-cygwin*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall -D_GNU_SOURC"
MY_SHFLAGS="-DPIC"; MY_SHLINK="-shared"; SHEXT=so
MY_SHNAME="-Wl,-soname,"; MY_LD="-Wl,--rpath -Wl,"
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
MY_SHFLAGS="-DPIC"; SHEXT=dll
MY_SHLINK="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive"
MY_SHLINKEXTRA="-Wl,--no-whole-archive"
MY_SHNAME="-Wl,-out-implib="; MY_LD="-Wl,--rpath -Wl,"
AR="ar"; ARFLAGS="cru"
build_static="yes"
build_shared="no"
;;
*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
......
......@@ -207,10 +207,14 @@ g++)
AR="ar"; ARFLAGS="cru"
;;
*-*-cygwin*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall -D_GNU_SOURC"
MY_SHFLAGS="-DPIC"; MY_SHLINK="-shared"; SHEXT=so
MY_SHNAME="-Wl,-soname,"; MY_LD="-Wl,--rpath -Wl,"
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
MY_SHFLAGS="-DPIC"; SHEXT=dll
MY_SHLINK="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive"
MY_SHLINKEXTRA="-Wl,--no-whole-archive"
MY_SHNAME="-Wl,-out-implib="; MY_LD="-Wl,--rpath -Wl,"
AR="ar"; ARFLAGS="cru"
build_static="yes"
build_shared="no"
;;
*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
......@@ -247,10 +251,14 @@ c++)
AR="ar"; ARFLAGS="cru"
;;
*-*-cygwin*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall -D_GNU_SOURC"
MY_SHFLAGS="-DPIC"; MY_SHLINK="-shared"; SHEXT=so
MY_SHNAME="-Wl,-soname,"; MY_LD="-Wl,--rpath -Wl,"
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
MY_SHFLAGS="-DPIC"; SHEXT=dll
MY_SHLINK="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive"
MY_SHLINKEXTRA="-Wl,--no-whole-archive"
MY_SHNAME="-Wl,-out-implib="; MY_LD="-Wl,--rpath -Wl,"
AR="ar"; ARFLAGS="cru"
build_static="yes"
build_shared="no"
;;
*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
......
......@@ -196,10 +196,14 @@ g++)
AR="ar"; ARFLAGS="cru"
;;
*-*-cygwin*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall -D_GNU_SOURC"
MY_SHFLAGS="-DPIC"; MY_SHLINK="-shared"; SHEXT=so
MY_SHNAME="-Wl,-soname,"; MY_LD="-Wl,--rpath -Wl,"
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
MY_SHFLAGS="-DPIC"; SHEXT=dll
MY_SHLINK="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive"
MY_SHLINKEXTRA="-Wl,--no-whole-archive"
MY_SHNAME="-Wl,-out-implib="; MY_LD="-Wl,--rpath -Wl,"
AR="ar"; ARFLAGS="cru"
build_static="yes"
build_shared="no"
;;
*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
......@@ -236,10 +240,14 @@ c++)
AR="ar"; ARFLAGS="cru"
;;
*-*-cygwin*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall -D_GNU_SOURC"
MY_SHFLAGS="-DPIC"; MY_SHLINK="-shared"; SHEXT=so
MY_SHNAME="-Wl,-soname,"; MY_LD="-Wl,--rpath -Wl,"
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
MY_SHFLAGS="-DPIC"; SHEXT=dll
MY_SHLINK="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive"
MY_SHLINKEXTRA="-Wl,--no-whole-archive"
MY_SHNAME="-Wl,-out-implib="; MY_LD="-Wl,--rpath -Wl,"
AR="ar"; ARFLAGS="cru"
build_static="yes"
build_shared="no"
;;
*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
......
......@@ -211,10 +211,14 @@ g++)
AR="ar"; ARFLAGS="cru"
;;
*-*-cygwin*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall -D_GNU_SOURC"
MY_SHFLAGS="-DPIC"; MY_SHLINK="-shared"; SHEXT=so
MY_SHNAME="-Wl,-soname,"; MY_LD="-Wl,--rpath -Wl,"
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
MY_SHFLAGS="-DPIC"; SHEXT=dll
MY_SHLINK="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive"
MY_SHLINKEXTRA="-Wl,--no-whole-archive"
MY_SHNAME="-Wl,-out-implib="; MY_LD="-Wl,--rpath -Wl,"
AR="ar"; ARFLAGS="cru"
build_static="yes"
build_shared="no"
;;
*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
......@@ -251,10 +255,14 @@ c++)
AR="ar"; ARFLAGS="cru"
;;
*-*-cygwin*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall -D_GNU_SOURC"
MY_SHFLAGS="-DPIC"; MY_SHLINK="-shared"; SHEXT=so
MY_SHNAME="-Wl,-soname,"; MY_LD="-Wl,--rpath -Wl,"
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
MY_SHFLAGS="-DPIC"; SHEXT=dll
MY_SHLINK="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive"
MY_SHLINKEXTRA="-Wl,--no-whole-archive"
MY_SHNAME="-Wl,-out-implib="; MY_LD="-Wl,--rpath -Wl,"
AR="ar"; ARFLAGS="cru"
build_static="yes"
build_shared="no"
;;
*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
......
......@@ -221,10 +221,14 @@ g++)
AR="ar"; ARFLAGS="cru"
;;
*-*-cygwin*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall -D_GNU_SOURC"
MY_SHFLAGS="-DPIC"; MY_SHLINK="-shared"; SHEXT=so
MY_SHNAME="-Wl,-soname,"; MY_LD="-Wl,--rpath -Wl,"
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
MY_SHFLAGS="-DPIC"; SHEXT=dll
MY_SHLINK="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive"
MY_SHLINKEXTRA="-Wl,--no-whole-archive"
MY_SHNAME="-Wl,-out-implib="; MY_LD="-Wl,--rpath -Wl,"
AR="ar"; ARFLAGS="cru"
build_static="yes"
build_shared="no"
;;
*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
......@@ -261,10 +265,14 @@ c++)
AR="ar"; ARFLAGS="cru"
;;
*-*-cygwin*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall -D_GNU_SOURC"
MY_SHFLAGS="-DPIC"; MY_SHLINK="-shared"; SHEXT=so
MY_SHNAME="-Wl,-soname,"; MY_LD="-Wl,--rpath -Wl,"
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
MY_SHFLAGS="-DPIC"; SHEXT=dll
MY_SHLINK="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive"
MY_SHLINKEXTRA="-Wl,--no-whole-archive"
MY_SHNAME="-Wl,-out-implib="; MY_LD="-Wl,--rpath -Wl,"
AR="ar"; ARFLAGS="cru"
build_static="yes"
build_shared="no"
;;
*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
......
......@@ -203,10 +203,14 @@ g++)
AR="ar"; ARFLAGS="cru"
;;
*-*-cygwin*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall -D_GNU_SOURC"
MY_SHFLAGS="-DPIC"; MY_SHLINK="-shared"; SHEXT=so
MY_SHNAME="-Wl,-soname,"; MY_LD="-Wl,--rpath -Wl,"
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
MY_SHFLAGS="-DPIC"; SHEXT=dll
MY_SHLINK="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive"
MY_SHLINKEXTRA="-Wl,--no-whole-archive"
MY_SHNAME="-Wl,-out-implib="; MY_LD="-Wl,--rpath -Wl,"
AR="ar"; ARFLAGS="cru"
build_static="yes"
build_shared="no"
;;
*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
......@@ -243,10 +247,14 @@ c++)
AR="ar"; ARFLAGS="cru"
;;
*-*-cygwin*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall -D_GNU_SOURC"
MY_SHFLAGS="-DPIC"; MY_SHLINK="-shared"; SHEXT=so
MY_SHNAME="-Wl,-soname,"; MY_LD="-Wl,--rpath -Wl,"
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
MY_SHFLAGS="-DPIC"; SHEXT=dll
MY_SHLINK="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive"
MY_SHLINKEXTRA="-Wl,--no-whole-archive"
MY_SHNAME="-Wl,-out-implib="; MY_LD="-Wl,--rpath -Wl,"
AR="ar"; ARFLAGS="cru"
build_static="yes"
build_shared="no"
;;
*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
......
......@@ -185,39 +185,6 @@ AM_CONDITIONAL(USE_GMAKE, test x$use_gmake = xyes)
AC_SUBST(COPY_P)
AC_SUBST(DIFF_Q)
# set the platform type
case "$target" in
*-*-cygwin*)
case "$CXX" in
g++)
build_cygwin="yes"
;;
c++)
build_cygwin="yes"
;;
cl)
build_visual="yes"
;;
*) echo UNEXPECTED CHOICE OF COMILER FOR $target: $CXX
build_unix="yes"
esac;;
*-*-win32*)
case "$CXX" in
cl)
build_visual="yes"
;;
*) echo UNEXPECTED CHOICE OF COMILER FOR $target: $CXX
build_unix="yes"
esac;;
*)
build_unix="yes"
esac
# one, and only one, of these should be true
AM_CONDITIONAL(BUILD_VISUAL, test x$build_visual = xyes)
AM_CONDITIONAL(BUILD_CYGWIN, test x$build_cygwin = xyes)
AM_CONDITIONAL(BUILD_UNIX, test x$build_unix = xyes)
# worry about compiler flags
case "$CXX" in
g++)
......@@ -235,12 +202,14 @@ g++)
AR="ar"; ARFLAGS="cru"
;;
*-*-cygwin*)
AM_CXXFLAGS="-O -Wall"
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
MY_SHFLAGS="-DPIC"; SHEXT=dll
MY_SHLINK="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive"
MY_SHLINKEXTRA="-Wl,--no-whole-archive"
MY_SHNAME="-Wl,-out-implib="; MY_LD="-Wl,--rpath -Wl,"
AR="ar"; ARFLAGS="cru"
build_static="yes"
build_shared="no"
;;
*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
......@@ -277,10 +246,14 @@ c++)
AR="ar"; ARFLAGS="cru"
;;
*-*-cygwin*)
AM_CXXFLAGS="-O -Wall"
MY_SHFLAGS="-DPIC"; MY_SHLINK="-shared"; SHEXT=so
MY_SHNAME="-Wl,-soname,"; MY_LD="-Wl,--rpath -Wl,"
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
MY_SHFLAGS="-DPIC"; SHEXT=dll
MY_SHLINK="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive"
MY_SHLINKEXTRA="-Wl,--no-whole-archive"
MY_SHNAME="-Wl,-out-implib="; MY_LD="-Wl,--rpath -Wl,"
AR="ar"; ARFLAGS="cru"
build_static="yes"
build_shared="no"
;;
*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
......@@ -360,12 +333,12 @@ esac
AM_CONDITIONAL(BUILD_SHARED, test x$build_shared = xyes)
AM_CONDITIONAL(BUILD_STATIC, test x$build_static = xyes)
AM_CONDITIONAL(BUILD_VISUAL, test x$build_visual = xyes)
AC_SUBST(AM_CXXFLAGS)
AC_SUBST(AM_LDFLAGS)
AC_SUBST(MY_SHFLAGS)
AC_SUBST(MY_SHLINK)
AC_SUBST(MY_SHLINKEXTRA)
AC_SUBST(MY_SHNAME)
AC_SUBST(MY_LD)
AC_SUBST(SHEXT)
......
......@@ -53,18 +53,11 @@ if BUILD_SHARED
shareddir = shared
if BUILD_VISUAL
lib_shared = CLHEP-Random-@VERSION@.$(SHEXT)
endif
if BUILD_UNIX
else
lib_shared = libCLHEP-Random-@VERSION@.$(SHEXT)
endif
if BUILD_CYGWIN
lib_shared_import = libCLHEP-Random-@VERSION@.$(SHEXT).a
lib_shared = cygCLHEP-Random-@VERSION@.$(SHEXT)
DEPLIBS =
endif
SHFLAGS = @MY_SHFLAGS@
SHLINK = @MY_SHLINK@
SHLINKEXTRA = @MY_SHLINKEXTRA@
SHNAME = @MY_SHNAME@
endif
if BUILD_STATIC
......@@ -84,17 +77,7 @@ $(lib_shared): $(libCLHEP_Random_@VERSION@_so_OBJECTS)
$(shareddir)/%.$(OBJEXT): %.cc
$(CXXCOMPILE) $(SHFLAGS) /c /Fo$@ $<
endif
if BUILD_CYGWIN
$(lib_shared): $(libCLHEP_Random_@VERSION@_so_OBJECTS)
$(CXXLINK) $(SHLINK) $(SHNAME)$(lib_shared_import) \
$(libCLHEP_Random_@VERSION@_so_OBJECTS) \
$(SHLINKEXTRA) $(DEPLIBS)
$(shareddir)/%.$(OBJEXT): %.cc
$(CXXCOMPILE) $(SHFLAGS) -c -o $@ $<
endif
if BUILD_UNIX
else
$(lib_shared): $(libCLHEP_Random_@VERSION@_so_OBJECTS)
$(CXXLINK) $(SHLINK) $(SHNAME)$@ $(libCLHEP_Random_@VERSION@_so_OBJECTS)
......
......@@ -12,12 +12,7 @@ if BUILD_STATIC
else
if BUILD_VISUAL
LDADD = $(top_builddir)/src/CLHEP-@PACKAGE@-@VERSION@.$(SHEXT)
endif
if BUILD_CYGWIN
LIBS += $(MY_LD)$(top_builddir)/src
LDADD = -L$(top_builddir)/src -lCLHEP-@PACKAGE@-@VERSION@
endif
if BUILD_UNIX
else
LIBS += $(MY_LD)$(top_builddir)/src
LDADD = $(top_builddir)/src/libCLHEP-@PACKAGE@-@VERSION@.$(SHEXT)
endif
......
......@@ -195,10 +195,14 @@ g++)
AR="ar"; ARFLAGS="cru"
;;
*-*-cygwin*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall -D_GNU_SOURC"
MY_SHFLAGS="-DPIC"; MY_SHLINK="-shared"; SHEXT=so
MY_SHNAME="-Wl,-soname,"; MY_LD="-Wl,--rpath -Wl,"
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
MY_SHFLAGS="-DPIC"; SHEXT=dll
MY_SHLINK="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive"
MY_SHLINKEXTRA="-Wl,--no-whole-archive"
MY_SHNAME="-Wl,-out-implib="; MY_LD="-Wl,--rpath -Wl,"
AR="ar"; ARFLAGS="cru"
build_static="yes"
build_shared="no"
;;
*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
......@@ -235,10 +239,14 @@ c++)
AR="ar"; ARFLAGS="cru"
;;
*-*-cygwin*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall -D_GNU_SOURC"
MY_SHFLAGS="-DPIC"; MY_SHLINK="-shared"; SHEXT=so
MY_SHNAME="-Wl,-soname,"; MY_LD="-Wl,--rpath -Wl,"
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
MY_SHFLAGS="-DPIC"; SHEXT=dll
MY_SHLINK="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive"
MY_SHLINKEXTRA="-Wl,--no-whole-archive"
MY_SHNAME="-Wl,-out-implib="; MY_LD="-Wl,--rpath -Wl,"
AR="ar"; ARFLAGS="cru"
build_static="yes"
build_shared="no"
;;
*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
......
......@@ -190,10 +190,14 @@ g++)
AR="ar"; ARFLAGS="cru"
;;
*-*-cygwin*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall -D_GNU_SOURC"
MY_SHFLAGS="-DPIC"; MY_SHLINK="-shared"; SHEXT=so
MY_SHNAME="-Wl,-soname,"; MY_LD="-Wl,--rpath -Wl,"
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
MY_SHFLAGS="-DPIC"; SHEXT=dll
MY_SHLINK="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive"
MY_SHLINKEXTRA="-Wl,--no-whole-archive"
MY_SHNAME="-Wl,-out-implib="; MY_LD="-Wl,--rpath -Wl,"
AR="ar"; ARFLAGS="cru"
build_static="yes"
build_shared="no"
;;
*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
......@@ -230,10 +234,14 @@ c++)
AR="ar"; ARFLAGS="cru"
;;
*-*-cygwin*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall -D_GNU_SOURC"
MY_SHFLAGS="-DPIC"; MY_SHLINK="-shared"; SHEXT=so
MY_SHNAME="-Wl,-soname,"; MY_LD="-Wl,--rpath -Wl,"
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
MY_SHFLAGS="-DPIC"; SHEXT=dll
MY_SHLINK="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive"
MY_SHLINKEXTRA="-Wl,--no-whole-archive"
MY_SHNAME="-Wl,-out-implib="; MY_LD="-Wl,--rpath -Wl,"
AR="ar"; ARFLAGS="cru"
build_static="yes"
build_shared="no"
;;
*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
......
......@@ -206,10 +206,14 @@ g++)
AR="ar"; ARFLAGS="cru"
;;
*-*-cygwin*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall -D_GNU_SOURC"
MY_SHFLAGS="-DPIC"; MY_SHLINK="-shared"; SHEXT=so
MY_SHNAME="-Wl,-soname,"; MY_LD="-Wl,--rpath -Wl,"
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
MY_SHFLAGS="-DPIC"; SHEXT=dll
MY_SHLINK="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive"
MY_SHLINKEXTRA="-Wl,--no-whole-archive"
MY_SHNAME="-Wl,-out-implib="; MY_LD="-Wl,--rpath -Wl,"
AR="ar"; ARFLAGS="cru"
build_static="yes"
build_shared="no"
;;
*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
......@@ -246,10 +250,14 @@ c++)
AR="ar"; ARFLAGS="cru"
;;
*-*-cygwin*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall -D_GNU_SOURC"
MY_SHFLAGS="-DPIC"; MY_SHLINK="-shared"; SHEXT=so
MY_SHNAME="-Wl,-soname,"; MY_LD="-Wl,--rpath -Wl,"
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
MY_SHFLAGS="-DPIC"; SHEXT=dll
MY_SHLINK="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive"
MY_SHLINKEXTRA="-Wl,--no-whole-archive"
MY_SHNAME="-Wl,-out-implib="; MY_LD="-Wl,--rpath -Wl,"
AR="ar"; ARFLAGS="cru"
build_static="yes"
build_shared="no"
;;
*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
......
......@@ -195,10 +195,14 @@ g++)
AR="ar"; ARFLAGS="cru"
;;
*-*-cygwin*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall -D_GNU_SOURC"
MY_SHFLAGS="-DPIC"; MY_SHLINK="-shared"; SHEXT=so
MY_SHNAME="-Wl,-soname,"; MY_LD="-Wl,--rpath -Wl,"
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
MY_SHFLAGS="-DPIC"; SHEXT=dll
MY_SHLINK="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive"
MY_SHLINKEXTRA="-Wl,--no-whole-archive"
MY_SHNAME="-Wl,-out-implib="; MY_LD="-Wl,--rpath -Wl,"
AR="ar"; ARFLAGS="cru"
build_static="yes"
build_shared="no"
;;
*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
......@@ -235,10 +239,14 @@ c++)
AR="ar"; ARFLAGS="cru"
;;
*-*-cygwin*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall -D_GNU_SOURC"
MY_SHFLAGS="-DPIC"; MY_SHLINK="-shared"; SHEXT=so
MY_SHNAME="-Wl,-soname,"; MY_LD="-Wl,--rpath -Wl,"
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
MY_SHFLAGS="-DPIC"; SHEXT=dll
MY_SHLINK="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive"
MY_SHLINKEXTRA="-Wl,--no-whole-archive"
MY_SHNAME="-Wl,-out-implib="; MY_LD="-Wl,--rpath -Wl,"
AR="ar"; ARFLAGS="cru"
build_static="yes"
build_shared="no"
;;
*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
......
......@@ -206,10 +206,14 @@ g++)
AR="ar"; ARFLAGS="cru"
;;
*-*-cygwin*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall -D_GNU_SOURC"
MY_SHFLAGS="-DPIC"; MY_SHLINK="-shared"; SHEXT=so
MY_SHNAME="-Wl,-soname,"; MY_LD="-Wl,--rpath -Wl,"
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
MY_SHFLAGS="-DPIC"; SHEXT=dll
MY_SHLINK="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive"
MY_SHLINKEXTRA="-Wl,--no-whole-archive"
MY_SHNAME="-Wl,-out-implib="; MY_LD="-Wl,--rpath -Wl,"
AR="ar"; ARFLAGS="cru"
build_static="yes"
build_shared="no"
;;
*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
......@@ -246,11 +250,15 @@ c++)
AR="ar"; ARFLAGS="cru"
;;
*-*-cygwin*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall -D_GNU_SOURC"
MY_SHFLAGS="-DPIC"; MY_SHLINK="-shared"; SHEXT=so
MY_SHNAME="-Wl,-soname,"; MY_LD="-Wl,--rpath -Wl,"
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
MY_SHFLAGS="-DPIC"; SHEXT=dll
MY_SHLINK="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive"
MY_SHLINKEXTRA="-Wl,--no-whole-archive"
MY_SHNAME="-Wl,-out-implib="; MY_LD="-Wl,--rpath -Wl,"
AR="ar"; ARFLAGS="cru"
;;
build_static="yes"
build_shared="no"
;;
*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
MY_SHFLAGS="-fPIC -DPIC"; MY_SHLINK="-shared"; SHEXT=so
......
......@@ -203,10 +203,14 @@ g++)
build_shared="no"
;;
*-*-cygwin*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall -D_GNU_SOURC"
MY_SHFLAGS="-DPIC"; MY_SHLINK="-shared"; SHEXT=so
MY_SHNAME="-Wl,-soname,"; MY_LD="-Wl,--rpath -Wl,"
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
MY_SHFLAGS="-DPIC"; SHEXT=dll
MY_SHLINK="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive"
MY_SHLINKEXTRA="-Wl,--no-whole-archive"
MY_SHNAME="-Wl,-out-implib="; MY_LD="-Wl,--rpath -Wl,"
AR="ar"; ARFLAGS="cru"
build_static="yes"
build_shared="no"
;;
*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
......@@ -244,10 +248,14 @@ c++)
build_shared="no"
;;
*-*-cygwin*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall -D_GNU_SOURC"
MY_SHFLAGS="-DPIC"; MY_SHLINK="-shared"; SHEXT=so
MY_SHNAME="-Wl,-soname,"; MY_LD="-Wl,--rpath -Wl,"
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
MY_SHFLAGS="-DPIC"; SHEXT=dll
MY_SHLINK="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive"
MY_SHLINKEXTRA="-Wl,--no-whole-archive"
MY_SHNAME="-Wl,-out-implib="; MY_LD="-Wl,--rpath -Wl,"
AR="ar"; ARFLAGS="cru"
build_static="yes"
build_shared="no"
;;
*)
AM_CXXFLAGS="-O -ansi -pedantic -Wall"
......
......@@ -145,10 +145,14 @@ g++)
AR="ar"; ARFLAGS="cru"