forked from pool/quota
* 0001-Set-fPIC-and-pie-as-default-params-when-building.patch OBS-URL: https://build.opensuse.org/package/show/Base:System/quota?expand=0&rev=45
37 lines
1.1 KiB
Diff
37 lines
1.1 KiB
Diff
From add4f4954adc27ad7b2a698a1d3ac0fcd981602a Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= <tchvatal@suse.com>
|
|
Date: Tue, 5 Jan 2016 11:20:52 +0100
|
|
Subject: [PATCH] Set -fPIC and -pie as default params when building
|
|
|
|
---
|
|
Makefile.am | 1 +
|
|
configure.ac | 2 +-
|
|
2 files changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/Makefile.am b/Makefile.am
|
|
index 7c7a866..77f8400 100644
|
|
--- a/Makefile.am
|
|
+++ b/Makefile.am
|
|
@@ -1,4 +1,5 @@
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
+AM_LDFLAGS = -pie
|
|
|
|
BUILT_SOURCES = rquota.h rquota.c rquota_clnt.c
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
|
index cb33781..489c281 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -53,7 +53,7 @@ AS_IF([test "x${prefix}" = "xNONE"], [
|
|
# ================
|
|
# Check for cflags
|
|
# ================
|
|
-CFLAGS="$CFLAGS -D_GNU_SOURCE -Wall -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
|
|
+CFLAGS="$CFLAGS -D_GNU_SOURCE -Wall -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -fPIC"
|
|
AC_ARG_ENABLE([werror],
|
|
[AS_HELP_STRING([--enable-werror], [Treat all warnings as errors, useful for development])],
|
|
[enable_werror="$enableval"],
|
|
--
|
|
2.6.4
|
|
|