From d4e2eec15daadd1bca60d20ffce022bea845621d Mon Sep 17 00:00:00 2001 From: ellson Date: Wed, 8 Jul 2009 16:59:12 +0000 Subject: [PATCH] eliminate -L/usr/lib or -L/usr/lib64 in LDFLAGS from gdlib-config --- configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 28c44b6dc..067607892 100644 --- a/configure.ac +++ b/configure.ac @@ -2452,10 +2452,17 @@ else fi fi fi - # prevent explicit use of /usr/include as it breaks mingw cross-compiles + # prevent explicit use of -I/usr/include as it breaks mingw cross-compiles if test "x$GD_INCLUDES" = "x-I/usr/include"; then GD_INCLUDES=""; fi + # prevent explicit use of -L/usr/lib or -L/usr/lib64, unnecessary clutter + if test "x$GD_LDFLAGS" = "x-L/usr/lib"; then + GD_LDFLAGS=""; + fi + if test "x$GD_LDFLAGS" = "x-L/usr/lib64"; then + GD_LDFLAGS=""; + fi if test "x$with_mylibgd" = "xno"; then if test "x$with_libgd" = "xyes"; then -- 2.40.0