Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/lgpl3/gmp/lib/libgmp Add -DPIC for PIE builds so th...
details: https://anonhg.NetBSD.org/src/rev/a82a048ce214
branches: trunk
changeset: 344717:a82a048ce214
user: christos <christos%NetBSD.org@localhost>
date: Tue Apr 12 19:38:41 2016 +0000
description:
Add -DPIC for PIE builds so that we can avoid text relocations.
diffstat:
external/lgpl3/gmp/lib/libgmp/Makefile | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 62b0179420d5 -r a82a048ce214 external/lgpl3/gmp/lib/libgmp/Makefile
--- a/external/lgpl3/gmp/lib/libgmp/Makefile Tue Apr 12 19:10:48 2016 +0000
+++ b/external/lgpl3/gmp/lib/libgmp/Makefile Tue Apr 12 19:38:41 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2013/12/19 01:07:03 gdt Exp $
+# $NetBSD: Makefile,v 1.25 2016/04/12 19:38:41 christos Exp $
.include <bsd.init.mk>
@@ -259,3 +259,7 @@
.endif
CWARNFLAGS.clang+= -Wno-unused-value -Wno-tautological-compare -Wno-parentheses
+
+.if !empty(CFLAGS:M-fPIE)
+M4FLAGS+=-DPIC
+.endif
Home |
Main Index |
Thread Index |
Old Index