summaryrefslogtreecommitdiff
path: root/veracrypt/debian/patches/002-build-flags.diff
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2019-01-30 15:40:06 -0500
committerB Stack <bgstack15@gmail.com>2019-01-30 15:40:06 -0500
commite9120a776ff758709db504702eb3a44940bdd26e (patch)
tree7eaa53b9b4c888038696252b49d535f1e1deec6b /veracrypt/debian/patches/002-build-flags.diff
parentadd palemoon dpkg for devuan (diff)
downloadstackrpms-e9120a776ff758709db504702eb3a44940bdd26e.tar.gz
stackrpms-e9120a776ff758709db504702eb3a44940bdd26e.tar.bz2
stackrpms-e9120a776ff758709db504702eb3a44940bdd26e.zip
add veracrypt dpkg first draft
Diffstat (limited to 'veracrypt/debian/patches/002-build-flags.diff')
-rw-r--r--veracrypt/debian/patches/002-build-flags.diff34
1 files changed, 34 insertions, 0 deletions
diff --git a/veracrypt/debian/patches/002-build-flags.diff b/veracrypt/debian/patches/002-build-flags.diff
new file mode 100644
index 0000000..20c8362
--- /dev/null
+++ b/veracrypt/debian/patches/002-build-flags.diff
@@ -0,0 +1,34 @@
+From: Stefan Sundin <stefan@stefansundin.com>
+Date: Fri, 12 Sept 2013
+Subject: Add build flags
+
+Forwarded: no
+
+Index: veracrypt/src/Makefile
+===================================================================
+--- veracrypt.orig/src/Makefile
++++ veracrypt/src/Makefile
+@@ -57,6 +57,10 @@ export WXCONFIG_CFLAGS :=
+ export WXCONFIG_CXXFLAGS :=
+ WX_ROOT ?= ..
+
++CPPFLAGS+=$(shell dpkg-buildflags --get CPPFLAGS)
++CFLAGS+=$(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS) -Wno-sequence-point
++CXXFLAGS+=$(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS) -Wno-narrowing
++LFLAGS+=$(shell dpkg-buildflags --get LDFLAGS)
+
+ export TC_BUILD_CONFIG := Release
+
+Index: veracrypt/src/Build/Include/Makefile.inc
+===================================================================
+--- veracrypt.orig/src/Build/Include/Makefile.inc
++++ veracrypt/src/Build/Include/Makefile.inc
+@@ -14,7 +14,7 @@ $(NAME): $(NAME).a
+
+ clean:
+ @echo Cleaning $(NAME)
+- rm -f $(APPNAME) $(NAME).a $(OBJS) $(OBJSEX) $(OBJS:.o=.d) *.gch
++ rm -f $(APPNAME) $(NAME).a $(OBJS) $(OBJS:.o=.d) *.gch $(RESOURCES) SystemPrecompiled.d
+
+ %.o: %.c
+ @echo Compiling $(<F)
bgstack15