public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
* patch for gsl-1.6: building shared libraries on cygwin/mingw
@ 2005-03-14 12:09 Teun Burgers
  2005-03-17 18:09 ` Brian Gough
  0 siblings, 1 reply; 4+ messages in thread
From: Teun Burgers @ 2005-03-14 12:09 UTC (permalink / raw)
  To: gsl-discuss

[-- Attachment #1: Type: text/plain, Size: 353 bytes --]

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

[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 1038 bytes --]

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
 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: patch for gsl-1.6: building shared libraries on cygwin/mingw
  2005-03-14 12:09 patch for gsl-1.6: building shared libraries on cygwin/mingw Teun Burgers
@ 2005-03-17 18:09 ` Brian Gough
  2005-03-21  9:09   ` Teun Burgers
  0 siblings, 1 reply; 4+ messages in thread
From: Brian Gough @ 2005-03-17 18:09 UTC (permalink / raw)
  To: Teun Burgers; +Cc: gsl-discuss

Teun Burgers writes:
 > +libgsl_la_LIBADD = $(SUBLIBS) cblas/libgslcblas.la

Hello,

It seems like this line would force the libgslcblas library to be part
of the main libgsl (so it wouldn't be possible to replace it at
runtime with ATLAS for example).

-- 
Brian Gough

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: patch for gsl-1.6: building shared libraries on cygwin/mingw
  2005-03-17 18:09 ` Brian Gough
@ 2005-03-21  9:09   ` Teun Burgers
  2005-03-24 19:21     ` Brian Gough
  0 siblings, 1 reply; 4+ messages in thread
From: Teun Burgers @ 2005-03-21  9:09 UTC (permalink / raw)
  To: gsl-discuss

Brian Gough wrote:

>  > +libgsl_la_LIBADD = $(SUBLIBS) cblas/libgslcblas.la

> It seems like this line would force the libgslcblas library to be part
> of the main libgsl (so it wouldn't be possible to replace it at
> runtime with ATLAS for example).

It does a result - on cygwin/mingw - in a dependency on (not inclusion
of) the cblas dll of the gsl dll.

To link to a shared (dll) version of atlas one would have
to compile that first and then specify that either through the LIBS
variable or with _LIBADD, so the gsl dll would be dependent on the atlas
dll. I think the dependency would have to be resolved at link time anyway.

Teun

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: patch for gsl-1.6: building shared libraries on cygwin/mingw
  2005-03-21  9:09   ` Teun Burgers
@ 2005-03-24 19:21     ` Brian Gough
  0 siblings, 0 replies; 4+ messages in thread
From: Brian Gough @ 2005-03-24 19:21 UTC (permalink / raw)
  To: Teun Burgers; +Cc: gsl-discuss

Teun Burgers writes:
 > Brian Gough wrote:
 > > It seems like this line would force the libgslcblas library to be part
 > > of the main libgsl (so it wouldn't be possible to replace it at
 > > runtime with ATLAS for example).
 > 
 > It does a result - on cygwin/mingw - in a dependency on (not inclusion
 > of) the cblas dll of the gsl dll.

I going to leave this alone, I think it will break normal Unix
linking.

-- 
Brian Gough

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-03-24 19:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-14 12:09 patch for gsl-1.6: building shared libraries on cygwin/mingw Teun Burgers
2005-03-17 18:09 ` Brian Gough
2005-03-21  9:09   ` Teun Burgers
2005-03-24 19:21     ` Brian Gough

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).