From 9405d773b072c17044b1e36dd8775d9ae31aaa1c Mon Sep 17 00:00:00 2001 From: Vladimir Sokolovsky Date: Sun, 14 Oct 2007 17:16:56 +0200 Subject: [PATCH] Fix sdpnetstat and rds-tools cpmpilation on RH5 ppc64. Signed-off-by: Vladimir Sokolovsky --- install.pl | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/install.pl b/install.pl index 3d3bfff..12552da 100755 --- a/install.pl +++ b/install.pl @@ -2374,12 +2374,22 @@ sub build_rpm } } else { - $ldflags .= " $optflags $ldflags -m64 -g -O2 -L/usr/lib64"; - $cflags .= " $optflags -m64 -g -O2"; - $cppflags .= " $optflags -m64 -g -O2"; - $cxxflags .= " $optflags -m64 -g -O2"; - $fflags .= " $optflags -m64 -g -O2"; - $ldlibs .= " $optflags -m64 -g -O2 -L/usr/lib64"; + if ($parent eq "sdpnetstat" or $parent eq "rds-tools") { + $ldflags .= " -g -O2"; + $cflags .= " -g -O2"; + $cppflags .= " -g -O2"; + $cxxflags .= " -g -O2"; + $fflags .= " -g -O2"; + $ldlibs .= " -g -O2"; + } + else { + $ldflags .= " $optflags -m64 -g -O2 -L/usr/lib64"; + $cflags .= " $optflags -m64 -g -O2"; + $cppflags .= " $optflags -m64 -g -O2"; + $cxxflags .= " $optflags -m64 -g -O2"; + $fflags .= " $optflags -m64 -g -O2"; + $ldlibs .= " $optflags -m64 -g -O2 -L/usr/lib64"; + } } } -- 2.41.0