summaryrefslogtreecommitdiffstats
path: root/apr-1.2.2-libdir.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2010-10-02 10:01:36 +0200
committerRemi Collet <fedora@famillecollet.com>2010-10-02 10:01:36 +0200
commitba0620fb6d74e94525a3256b4c5204fb3f5a247f (patch)
treea5c562c23f43beef861722c0debb3d2ee4912f5c /apr-1.2.2-libdir.patch
work on httpd 2.3.8HEADmaster
Diffstat (limited to 'apr-1.2.2-libdir.patch')
-rw-r--r--apr-1.2.2-libdir.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/apr-1.2.2-libdir.patch b/apr-1.2.2-libdir.patch
new file mode 100644
index 0000000..aeb7ee1
--- /dev/null
+++ b/apr-1.2.2-libdir.patch
@@ -0,0 +1,18 @@
+
+- 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}"