aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/procinfo-ng/procinfo-ng/obey-ldflags.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/procinfo-ng/procinfo-ng/obey-ldflags.patch')
-rw-r--r--recipes/procinfo-ng/procinfo-ng/obey-ldflags.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/recipes/procinfo-ng/procinfo-ng/obey-ldflags.patch b/recipes/procinfo-ng/procinfo-ng/obey-ldflags.patch
new file mode 100644
index 0000000000..35ec6714ed
--- /dev/null
+++ b/recipes/procinfo-ng/procinfo-ng/obey-ldflags.patch
@@ -0,0 +1,18 @@
+---
+ configure.in | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+--- procinfo-ng-2.0.304.orig/configure.in
++++ procinfo-ng-2.0.304/configure.in
+@@ -42,7 +42,10 @@ if test "$enable_maintainer_mode" = "yes
+ LDFLAGS="-lncurses"
+ else
+ CFLAGS="$CFLAGS -pipe -Wall"
+- LDFLAGS="-s -lncurses"
++ if test "X$LDFLAGS" = X; then
++ LDFLAGS="-s"
++ fi
++ LDFLAGS="$LDFLAGS -lncurses"
+ fi
+
+ AC_OUTPUT(Makefile)