apr/apr-1.2.2-libdir.patch

25 lines
673 B
Diff
Raw Permalink Normal View History

2019-12-25 15:41:42 +08:00
- avoid adding %{_libdir} to --link-ld output
2024-02-03 22:39:31 +08:00
--- a/apr-config.in
+++ b/apr-config.in
@@ -213,8 +213,10 @@ while test $# -gt 0; do
2019-12-25 15:41:42 +08:00
;;
--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}"
2024-02-03 22:39:31 +08:00
elif test "$location" = "crosscompile"; then
flags="$flags -L$APR_TARGET_DIR/$libdir -l${APR_LIBNAME}"
2019-12-25 15:41:42 +08:00
else
2024-02-03 22:39:31 +08:00
--
apr-config.in | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)