This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
patch for gsl-1.6: building shared libraries on cygwin/mingw
- From: Teun Burgers <a dot rburgers at quicknet dot nl>
- To: gsl-discuss at cygwin dot com
- Date: Sun, 13 Mar 2005 19:27:03 +0100
- Subject: patch for gsl-1.6: building shared libraries on cygwin/mingw
Hello,
in order to build shared libraries with libtool for cygwin (see
http://www.cygwin.com/ml/cygwin-announce/2005-03/msg00010.html)
and mingw I have to apply the attached patch
(relative to 1.6) to Makefile.am and cblas/Makefile.am.
I think this patch should not affect other builds. On
Tru64 for instance it doesn't harm.
regards,
Teun Burgers
diff -urN -x .build -x .inst -x .sinst gsl-1.6-orig/Makefile.am gsl-1.6/Makefile.am
--- gsl-1.6-orig/Makefile.am 2004-12-24 14:54:21.000000000 +0100
+++ gsl-1.6/Makefile.am 2005-02-10 15:48:21.000000000 +0100
@@ -17,8 +17,8 @@
lib_LTLIBRARIES = libgsl.la
libgsl_la_SOURCES = version.c
-libgsl_la_LIBADD = $(SUBLIBS)
-libgsl_la_LDFLAGS = -version-info $(GSL_LT_VERSION)
+libgsl_la_LIBADD = $(SUBLIBS) cblas/libgslcblas.la
+libgsl_la_LDFLAGS = -no-undefined -version-info $(GSL_LT_VERSION)
noinst_HEADERS = templates_on.h templates_off.h
m4datadir = $(datadir)/aclocal
diff -urN -x .build -x .inst -x .sinst gsl-1.6-orig/cblas/Makefile.am gsl-1.6/cblas/Makefile.am
--- gsl-1.6-orig/cblas/Makefile.am 2004-09-11 15:45:09.000000000 +0200
+++ gsl-1.6/cblas/Makefile.am 2005-02-10 15:46:05.000000000 +0100
@@ -1,5 +1,5 @@
lib_LTLIBRARIES = libgslcblas.la
-libgslcblas_la_LDFLAGS = -version-info $(GSL_LT_CBLAS_VERSION)
+libgslcblas_la_LDFLAGS = -no-undefined -version-info $(GSL_LT_CBLAS_VERSION)
pkginclude_HEADERS = gsl_cblas.h