Blob Blame History Raw
From 0d1fe58268f9c679d1aa544f0b08b342338c9be8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Wed, 10 Jun 2015 16:49:22 +0200
Subject: [PATCH] Do not hard-code CFLAGS
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Original code replaces CFLAGS. We need to respect distribution level
compiler flags.

Signed-off-by: Petr Písař <ppisar@redhat.com>
---
 Makefile.PL | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/Makefile.PL b/Makefile.PL
index d16a17d..d381e29 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -17,13 +17,5 @@ requires_external_cc();
 inc '-I/usr/local/opt/openssl/include -I/usr/local/include/openssl -I/usr/include/openssl -I/usr/local/include/ssl -I/usr/local/ssl/include';
 libs '-L/usr/local/opt/openssl/lib -L/usr/local/lib -L/usr/lib -L/usr/local/ssl/lib -lcrypto -lssl';
 
-if ($Config::Config{myuname} =~ /darwin/i) {
-  cc_optimize_flags('-O2 -g -Wall -Werror -Wno-deprecated-declarations');
-} elsif ($Config::Config{myuname} =~ /sunos|solaris/i) {
-  # Any SunStudio flags?
-} else {
-  cc_optimize_flags('-O2 -g -Wall -Werror');
-}
-
 auto_install();
 WriteAll();
-- 
2.1.0