From 6b2ed1f1d70bd76a8adb37adacacd99559e1eac9 Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Tue, 10 Mar 2015 20:00:21 -0400 Subject: Harden ML executable --- debian/rules | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules index 3c670ce5..6374aa4d 100755 --- a/debian/rules +++ b/debian/rules @@ -4,6 +4,12 @@ # Avoid overlinking and reduce library dependencies. export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed +# Harden SML executables. +export MLTONARGS := \ + -cc-opt "$(shell dpkg-buildflags --get CPPFLAGS) \ + $(shell dpkg-buildflags --get CFLAGS)" \ + -link-opt "$(shell dpkg-buildflags --get LDFLAGS)" + %: dh $@ --parallel --with autoreconf -- cgit v1.2.3