[gsl] fix lib64 problem
Ivana Varekova
varekova at fedoraproject.org
Tue May 10 06:10:05 UTC 2011
commit f3f9d1c3805b4cc2459aab44aee16829cc4df468
Author: Ivana Hutarova Varekova <varekova at redhat.com>
Date: Tue May 10 08:17:00 2011 +0200
fix lib64 problem
gsl-1.15-atlas.patch | 2 +-
gsl.spec | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gsl-1.15-atlas.patch b/gsl-1.15-atlas.patch
index 9a1de2a..54d64af 100644
--- a/gsl-1.15-atlas.patch
+++ b/gsl-1.15-atlas.patch
@@ -10,7 +10,7 @@ diff -up gsl-1.15/Makefile.in.pom gsl-1.15/Makefile.in
- $(libgsl_la_LDFLAGS) $(LDFLAGS) -o $@
+libgsl_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
-+ $(libgsl_la_LDFLAGS) $(LDFLAGS) -L/usr/lib/atlas/ -lcblas -latlas -o $@
++ $(libgsl_la_LDFLAGS) $(LDFLAGS) -lcblas -latlas -o $@
PROGRAMS = $(bin_PROGRAMS)
am_gsl_histogram_OBJECTS = gsl-histogram.$(OBJEXT)
gsl_histogram_OBJECTS = $(am_gsl_histogram_OBJECTS)
diff --git a/gsl.spec b/gsl.spec
index ce2eb3d..f0a3367 100644
--- a/gsl.spec
+++ b/gsl.spec
@@ -46,7 +46,7 @@ mv THANKS.aux THANKS
%configure CFLAGS="$CFLAGS -fgnu89-inline"
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
-make %{?_smp_mflags}
+make %{?_smp_mflags} LDFLAGS="$LDFLAGS -L%{_libdir}/atlas/"
%install
rm -rf $RPM_BUILD_ROOT
More information about the scm-commits
mailing list