Skip to content

Instantly share code, notes, and snippets.

@apoleon
Created October 29, 2018 09:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apoleon/52bf6c0ba3c68587e513d9f2ef8cb32b to your computer and use it in GitHub Desktop.
Save apoleon/52bf6c0ba3c68587e513d9f2ef8cb32b to your computer and use it in GitHub Desktop.
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(" -O6 ",$ENV{CXXFLAGS}," ",$ENV{CPPFLAGS});
+my @ldflags = map { split } join(" -lpthread "," -ldl ",$ENV{LDFLAGS});
my @libs = ();
my $configh = "config.h";
my $configmake = "config.make";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment