File scilab-disable-debian-specific-cflags.patch of Package scilab
From 9c245277d95bc541bcee16c76e9aa11051a51e8a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cl=C3=A9ment=20DAVID?=
<clement.david@scilab-enterprises.com>
Date: Wed, 20 May 2015 10:14:09 +0200
Subject: [PATCH] Configure: disable Ubuntu/Debian specific flags
These flags were used to avoid dependency on a recent glibc and thus
allow the binary release to run on older systems than the compilation
chain.
As the compilation chain now use the older system where a Scilab runs
such quirks are no more needed. Let distribution packagers perform their
own choices !
Change-Id: I15683378286ec2439483aafb838ca8c7996ea6cf
---
scilab/configure | 11 -----------
scilab/configure.ac | 11 -----------
2 files changed, 22 deletions(-)
--- a/configure
+++ b/configure
@@ -9850,7 +9850,6 @@ case "$CXX" in
else
DEBUG_CXXFLAGS="-DNDEBUG"
fi
- COMPILER_CXXFLAGS="-fno-stack-protector " # bug 3131
;;
esac
@@ -9890,16 +9889,6 @@ case "$CC" in
DEBUG_CFLAGS="-DNDEBUG"
fi
- COMPILER_CFLAGS="-fno-stack-protector " # bug 3131
- # Explictly disable the as needed. It was disable by default but Ubuntu
- # activated it by default since release 11.04. See bug #8961.
- # Once all cyclic dependencies have been dropped, this line could be removed.
- # Check if linker supports --as-needed and --no-as-needed options
- if $LD --help 2>/dev/null | grep no-as-needed > /dev/null; then
- LDFLAGS="$LDFLAGS -Wl,--no-as-needed"
- fi
-
-
case "$host" in
x86_64-*-linux-gnu | x86_64-linux-gnu)
ARCH_CFLAGS="-m64"
--- a/configure.ac
+++ b/configure.ac
@@ -545,7 +545,6 @@ case "$CXX" in
else
DEBUG_CXXFLAGS="-DNDEBUG"
fi
- COMPILER_CXXFLAGS="-fno-stack-protector " # bug 3131
;;
esac
@@ -585,16 +584,6 @@ case "$CC" in
DEBUG_CFLAGS="-DNDEBUG"
fi
- COMPILER_CFLAGS="-fno-stack-protector " # bug 3131
- # Explictly disable the as needed. It was disable by default but Ubuntu
- # activated it by default since release 11.04. See bug #8961.
- # Once all cyclic dependencies have been dropped, this line could be removed.
- # Check if linker supports --as-needed and --no-as-needed options
- if $LD --help 2>/dev/null | grep no-as-needed > /dev/null; then
- LDFLAGS="$LDFLAGS -Wl,--no-as-needed"
- fi
-
-
case "$host" in
x86_64-*-linux-gnu | x86_64-linux-gnu)
ARCH_CFLAGS="-m64"