51ae739451
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/apr#7ee0d5f90b00fe1dd8024da7295c368915f367a2
19 lines
598 B
Diff
19 lines
598 B
Diff
|
|
- avoid adding %{_libdir} to --link-ld output
|
|
|
|
--- apr-1.2.2/apr-config.in.libdir
|
|
+++ apr-1.2.2/apr-config.in
|
|
@@ -181,8 +181,10 @@
|
|
;;
|
|
--link-ld)
|
|
if test "$location" = "installed"; then
|
|
- ### avoid using -L if libdir is a "standard" location like /usr/lib
|
|
- flags="$flags -L$libdir -l${APR_LIBNAME}"
|
|
+ if test "$prefix" != "/usr"; then
|
|
+ flags="$flags -L$libdir"
|
|
+ fi
|
|
+ flags="$flags -l${APR_LIBNAME}"
|
|
else
|
|
### this surely can't work since the library is in .libs?
|
|
flags="$flags -L$APR_BUILD_DIR -l${APR_LIBNAME}"
|