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