[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gsl] [bug #37894] Shared library does not build on Cygwin
From: |
Jean-Pierre Flori |
Subject: |
[Bug-gsl] [bug #37894] Shared library does not build on Cygwin |
Date: |
Mon, 10 Dec 2012 18:43:44 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20100101 Firefox/14.0.1 |
Follow-up Comment #2, bug #37894 (project gsl):
The way I would do it, inspired by other project, is to modify configure.ac
where MINGW and MINGW32_HOST are defined (from line 150) to something like:
AC_SUBST(GSL_LDFLAGS)
AC_SUBST(GSL_LIBADD)
case "$host_os" in
*cygwin* | *mingw* )
if test "$enable_shared" = yes; then
GSL_LDFLAGS="$GSL_LDFLAGS -no-undefined"
GSL_LIBADD="cblas/libgslcblas.la"
fi
;;
esac
And in cblas/Makefile.am, replace at the top
libgslcblas_la_LDFLAGS = -version-info $(GSL_LT_CBLAS_VERSION)
MINGW32_HOST = @MINGW32_HOST@
if MINGW32_HOST
libgslcblas_la_LDFLAGS += -no-undefined
endif
by
libgslcblas_la_LDFLAGS = @GSL_LDFLAGS@ -version-info $(GSL_LT_CBLAS_VERSION)
And in Makefile.am, do something similar and get
libgsl_la_LIBADD = @GSL_LIBADD@ $(SUBLIBS)
libgsl_la_LDFLAGS = @GSL_LDFLAGS@ -version-info $(GSL_LT_VERSION)
See https://github.com/wbhart/mpir/blob/master/configure.in#L1840 for how this
is done in MPIR.
And here
https://gforge.inria.fr/scm/viewvc.php/trunk/configure.ac?view=markup&root=mpfr
for MPFR.
Best,
JP
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?37894>
_______________________________________________
Message posté via/par Savannah
http://savannah.gnu.org/