File: 90_respect_deb_build_options.patch

package info (click to toggle)
eboard 1.1.3-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,156 kB
  • sloc: cpp: 24,340; perl: 1,038; ansic: 279; sh: 105; makefile: 52
file content (25 lines) | stat: -rw-r--r-- 811 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Markus Koschany <apo@debian.org>
Date: Sun, 28 Oct 2018 22:01:27 +0100
Subject: 90_respect_deb_build_options

Forwarded: https://github.com/fbergo/eboard/issues/4
---
 configure | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index b859211..d31ef1c 100755
--- a/configure
+++ b/configure
@@ -7,9 +7,9 @@ my $prefix      = "/usr/local";
 my $package     = "eboard";
 my $version     = "1.1.3";
 my $cxx         = "g++";
-my @cxxflags    = ("-O6");
 my @cxxflagsdbg = ("-ggdb");
-my @ldflags     = ("-lpthread -ldl");
+my @cxxflags    = map { split } join(" ",$ENV{CXXFLAGS}," ",$ENV{CPPFLAGS});
+my @ldflags     = map { split } join(" -lpthread "," -ldl ",$ENV{LDFLAGS});
 my @libs        = ();
 my $configh     = "config.h";
 my $configmake  = "config.make";