@@ -219,6 +219,8 @@ export SHELL="%{_bindir}/sh"
219219export SHELL_PATH=" $SHELL "
220220export CONFIG_SHELL=" $SHELL "
221221export PERL=" %{_bindir}/perl"
222+ export CFLAGS=" -R%{_libdir} $CFLAGS "
223+ export LDFLAGS=" -rpath %{_libdir} $LDFLAGS "
222224mkdir build-{full,minimal}
223225export common_configure_opts=" \
224226 --cache-file=../config.cache \
@@ -270,9 +272,9 @@ export common_configure_opts=" \
270272)
271273
272274# avoid using rpath
273- sed -e 's/^runpath_var= .*/runpath_var= /' \
274- -e 's/^hardcode_libdir_flag_spec= ".*"$/hardcode_libdir_flag_spec= ""/' \
275- -i build-{full,minimal}/libtool
275+ # sed -e 's/^runpath_var=.*/runpath_var=/' \
276+ # -e 's/^hardcode_libdir_flag_spec=".*"$/hardcode_libdir_flag_spec=""/' \
277+ # -i build-{full,minimal}/libtool
276278
277279make %{?_smp_mflags } V= 1 -C build-minimal
278280make %{?_smp_mflags } V= 1 -C build-full
@@ -282,6 +284,8 @@ export SHELL="%{_bindir}/sh"
282284export SHELL_PATH=" $SHELL "
283285export CONFIG_SHELL=" $SHELL "
284286export PERL=" %{_bindir}/perl"
287+ export CFLAGS=" -R%{_libdir} $CFLAGS "
288+ export LDFLAGS=" -rpath %{_libdir} $LDFLAGS "
285289# we have to override LD_LIBRARY_PATH because we eliminated rpath
286290LD_LIBRARYN32_PATH=" $RPM_BUILD_ROOT %{_libdir}:$LD_LIBRARYN32_PATH "
287291export LD_LIBRARYN32_PATH
@@ -302,6 +306,8 @@ export SHELL="%{_bindir}/sh"
302306export SHELL_PATH=" $SHELL "
303307export CONFIG_SHELL=" $SHELL "
304308export PERL=" %{_bindir}/perl"
309+ export CFLAGS=" -R%{_libdir} $CFLAGS "
310+ export LDFLAGS=" -rpath %{_libdir} $LDFLAGS "
305311# install and rename the library that will be packaged as libcurl-minimal
306312make DESTDIR=$RPM_BUILD_ROOT INSTALL=" install -p" install -C build-minimal/lib
307313rm -f ${RPM_BUILD_ROOT} %{_libdir }/libcurl.{la,so}
0 commit comments